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

View file

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