1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2026-02-17 17:32:36 +01:00

another fix for compatibility with Excellent Enchants

This commit is contained in:
nossr50
2026-01-27 13:03:50 -08:00
parent 8f8d7756ca
commit 080d407c14
2 changed files with 11 additions and 3 deletions

View File

@@ -1,3 +1,6 @@
Version 2.2.050
Further improved compatibility with Excellent Enchants
Version 2.2.049
Combat abilities work with spear in off-hand again (see notes)
Sweet berry bushes now work with Herbalism (thanks dnocturne)

View File

@@ -242,11 +242,16 @@ public class BlockListener implements Listener {
return;
}
BlockState blockState = event.getNewState();
final BlockState newState = event.getNewState();
if (!newState.isPlaced()) {
// not backed by a real block
return;
}
if (ExperienceConfig.getInstance().isSnowExploitPrevented() && BlockUtils.shouldBeWatched(
blockState)) {
Block block = blockState.getBlock();
newState)) {
final Block block = newState.getBlock();
if (BlockUtils.isWithinWorldBounds(block)) {
BlockUtils.setUnnaturalBlock(block);