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:
@@ -1,3 +1,6 @@
|
|||||||
|
Version 2.2.050
|
||||||
|
Further improved compatibility with Excellent Enchants
|
||||||
|
|
||||||
Version 2.2.049
|
Version 2.2.049
|
||||||
Combat abilities work with spear in off-hand again (see notes)
|
Combat abilities work with spear in off-hand again (see notes)
|
||||||
Sweet berry bushes now work with Herbalism (thanks dnocturne)
|
Sweet berry bushes now work with Herbalism (thanks dnocturne)
|
||||||
|
|||||||
@@ -242,11 +242,16 @@ public class BlockListener implements Listener {
|
|||||||
return;
|
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(
|
if (ExperienceConfig.getInstance().isSnowExploitPrevented() && BlockUtils.shouldBeWatched(
|
||||||
blockState)) {
|
newState)) {
|
||||||
Block block = blockState.getBlock();
|
final Block block = newState.getBlock();
|
||||||
|
|
||||||
if (BlockUtils.isWithinWorldBounds(block)) {
|
if (BlockUtils.isWithinWorldBounds(block)) {
|
||||||
BlockUtils.setUnnaturalBlock(block);
|
BlockUtils.setUnnaturalBlock(block);
|
||||||
|
|||||||
Reference in New Issue
Block a user