Compare Materials instead of instanceof check.

This commit is contained in:
Rockey 2019-07-29 09:40:42 +00:00
parent d423eb526c
commit 1af8df7225

View File

@ -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);