Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
11 changes: 8 additions & 3 deletions src/main/java/com/gmail/nossr50/listeners/BlockListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,16 @@ public void onEntityBlockFormEvent(EntityBlockFormEvent event) {
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);
Expand Down