From 1af8df72251cc71be87b07a81b1f81fd2fa589c0 Mon Sep 17 00:00:00 2001 From: Rockey Date: Mon, 29 Jul 2019 09:40:42 +0000 Subject: [PATCH] Compare Materials instead of instanceof check. --- .../main/java/me/goodandevil/skyblock/listeners/Interact.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FabledSkyBlock/Core/src/main/java/me/goodandevil/skyblock/listeners/Interact.java b/FabledSkyBlock/Core/src/main/java/me/goodandevil/skyblock/listeners/Interact.java index 2a3fde22..37a132f6 100644 --- a/FabledSkyBlock/Core/src/main/java/me/goodandevil/skyblock/listeners/Interact.java +++ b/FabledSkyBlock/Core/src/main/java/me/goodandevil/skyblock/listeners/Interact.java @@ -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);