Using isSolid as the before method was not available widely

This commit is contained in:
SvenjaReißaus
2019-03-18 23:31:42 -05:00
parent 90a5f53e21
commit 7b0c4fe130
2 changed files with 1 additions and 1 deletions

View File

@@ -875,7 +875,7 @@ public class FactionsPlayerListener implements Listener {
if (block == null) return; // clicked in air, apparently 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"); player.sendMessage("Checking if you can use that block");
if (!canPlayerUseBlock(player, block, false)) { if (!canPlayerUseBlock(player, block, false)) {
event.setCancelled(true); event.setCancelled(true);