Fixed blocks placing when using shift+click to inspect trapdoors (#134)
This commit is contained in:
parent
21eefff53f
commit
29d55e6ba9
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue