diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4766078..a0191f7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,7 +4,7 @@ stages: variables: name: "EpicFurnaces" path: "/builds/$CI_PROJECT_PATH" - version: "4.4.3" + version: "4.4.4" build: stage: build diff --git a/src/main/java/com/songoda/epicfurnaces/listeners/BlockListeners.java b/src/main/java/com/songoda/epicfurnaces/listeners/BlockListeners.java index 9d37f84..f2715cc 100644 --- a/src/main/java/com/songoda/epicfurnaces/listeners/BlockListeners.java +++ b/src/main/java/com/songoda/epicfurnaces/listeners/BlockListeners.java @@ -47,11 +47,8 @@ public class BlockListeners implements Listener { @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true) public void onBlockPlace(BlockPlaceEvent event) { - if (plugin.getBlacklistHandler().isBlacklisted(event.getPlayer())) { - return; - } - - if (event.getBlock().getType().name().contains("FURNACE")) + if (plugin.getBlacklistHandler().isBlacklisted(event.getPlayer()) + || !event.getBlock().getType().name().contains("FURNACE")) return; ItemStack item = event.getItemInHand();