Skip to content

Commit

Permalink
Fix wither explosions breaking protected blocks (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
T14D3 authored Dec 3, 2024
1 parent 238a31a commit 54978b2
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,10 @@ public void onEntityChangeBlock(@NotNull final EntityChangeBlockEvent event) {
event.setCancelled(true);
}
}
else if (BlockProt.getDefaultConfig().isLockable(event.getBlock().getType())) {
BlockNBTHandler handler = new BlockNBTHandler(event.getBlock());
if (handler.isProtected())
event.setCancelled(true);
}
}
}

0 comments on commit 54978b2

Please sign in to comment.