Skip to content

Commit

Permalink
cancel first
Browse files Browse the repository at this point in the history
  • Loading branch information
xGinko committed Jan 22, 2024
1 parent 462f6f3 commit eb20112
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ private void onBlockPlace(BlockPlaceEvent event) {
if (!MaterialUtil.REDSTONE.contains(block.getType())) return;

if (MaterialUtil.TRAPDOORS.contains(block.getRelative(BlockFace.DOWN).getType())) {
event.setCancelled(true);
if (logIsEnabled) LogUtil.moduleLog(Level.WARNING, name(), "Prevented possible trapdoor crash at\n" +
"x: "+block.getLocation().getX() + ", " +
"y: "+block.getLocation().getY() + ", " +
"z: "+block.getLocation().getX() + ", " +
"world: "+block.getLocation().getWorld().getName());
event.setCancelled(true);
}
}
}

0 comments on commit eb20112

Please sign in to comment.