diff --git a/Changelog.txt b/Changelog.txt index 655e080e6..5864af1db 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -1,11 +1,11 @@ Version 2.2.049 Combat abilities work with spear in off-hand again (see notes) Sweet berry bushes now work with Herbalism (thanks dnocturne) - (Codebase) Fixed unit tests for Java 25 (thanks Warriorrrr) Fixed copper items not giving XP for Repair (thanks Remski01) - Fixed edge case where mcMMO could drop items with stack size set outside normal bounds + Fixed rare edge case where mcMMO could drop items with stack size set outside normal bounds Fixed a bug where tamed wolves could cause errors on Folia (thanks Warriorrrr) Improved compatibility with Excellent Enchants (fixed error spam from Flame Walker) + (Codebase) Fixed unit tests when building mcMMO with Java 25 (thanks Warriorrrr) NOTES: As a semi-permanent work around, mcMMO keeps track of when players swing their weapon, if they have swung it recently enough combat skills will work even if you have a spear in your off-hand. diff --git a/pom.xml b/pom.xml index 8d0240bc1..044fac1c2 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.gmail.nossr50.mcMMO mcMMO - 2.2.049-SNAPSHOT + 2.2.049 mcMMO https://github.com/mcMMO-Dev/mcMMO diff --git a/src/main/java/com/gmail/nossr50/listeners/BlockListener.java b/src/main/java/com/gmail/nossr50/listeners/BlockListener.java index 1f03e6980..30fa7d9e9 100644 --- a/src/main/java/com/gmail/nossr50/listeners/BlockListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/BlockListener.java @@ -276,7 +276,7 @@ public class BlockListener implements Listener { if (newState.getType() != Material.OBSIDIAN && ExperienceConfig.getInstance().doesBlockGiveSkillXP( PrimarySkillType.MINING, newState.getType())) { - Block block = newState.getBlock(); + final Block block = newState.getBlock(); if (BlockUtils.isWithinWorldBounds(block)) { BlockUtils.setUnnaturalBlock(block); }