Using clicked material

This commit is contained in:
SvenjaReißaus 2019-03-19 00:13:25 -05:00
parent 63d3a0af76
commit c02af9207b
No known key found for this signature in database
GPG Key ID: E5494A03FA36D54B
2 changed files with 1 additions and 1 deletions

View File

@ -752,7 +752,7 @@ public class FactionsPlayerListener implements Listener {
if (block == null) return; // clicked in air, apparently
SavageFactions.plugin.log("Checking for material permission");
if (GetPermissionFromUsableBlock(event.getMaterial()) == null) return;
if (GetPermissionFromUsableBlock(event.getClickedBlock().getType()) == null) return;
SavageFactions.plugin.log("Checking for use block permission");
if (!canPlayerUseBlock(player, block, false)) {
event.setCancelled(true);