Using isSolid as the before method was not available widely
This commit is contained in:
parent
90a5f53e21
commit
7b0c4fe130
Binary file not shown.
@ -875,7 +875,7 @@ public class FactionsPlayerListener implements Listener {
|
||||
|
||||
if (block == null) return; // clicked in air, apparently
|
||||
|
||||
if (!block.getType().isInteractable()) return;
|
||||
if (!block.getType().isSolid()) return;
|
||||
player.sendMessage("Checking if you can use that block");
|
||||
if (!canPlayerUseBlock(player, block, false)) {
|
||||
event.setCancelled(true);
|
||||
|
Loading…
Reference in New Issue
Block a user