Using isSolid as the before method was not available widely
This commit is contained in:
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);
|
||||
|
||||
Reference in New Issue
Block a user