mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-26 04:06:00 +01:00
Compare Materials instead of instanceof check.
This commit is contained in:
parent
d423eb526c
commit
1af8df7225
@ -112,7 +112,7 @@ public class Interact implements Listener {
|
||||
|
||||
return;
|
||||
}
|
||||
} else if (block.getState() instanceof Cauldron) { // WildStacker stackables
|
||||
} else if (block.getType() == Material.CAULDRON) { // WildStacker stackables
|
||||
if (!islandManager.hasPermission(player, block.getLocation(), "Place") || !islandManager.hasPermission(player, block.getLocation(), "Destroy")) {
|
||||
event.setCancelled(true);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user