Fixed blocks placing when using shift+click to inspect trapdoors (#134)

This commit is contained in:
Intelli 2022-02-10 21:08:11 -07:00
parent 21eefff53f
commit 29d55e6ba9
1 changed files with 1 additions and 1 deletions

View File

@ -390,7 +390,7 @@ public final class PlayerInteractListener extends Queue implements Listener {
Thread thread = new Thread(runnable);
thread.start();
if (!BlockGroup.SAFE_INTERACT_BLOCKS.contains(type)) {
if (!BlockGroup.SAFE_INTERACT_BLOCKS.contains(type) || player.isSneaking()) {
event.setCancelled(true);
}
}