From a1a22758e38cf3e1ab4c63dba12f7bfa86ccadf6 Mon Sep 17 00:00:00 2001 From: PikaMug Date: Fri, 8 Nov 2019 21:25:26 -0500 Subject: [PATCH] Support Blast Furnace and Smoker in smelting objectives, fixes #976 --- .../java/me/blackvein/quests/listeners/PlayerListener.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main/src/main/java/me/blackvein/quests/listeners/PlayerListener.java b/main/src/main/java/me/blackvein/quests/listeners/PlayerListener.java index b8218dd14..5c15cdc30 100644 --- a/main/src/main/java/me/blackvein/quests/listeners/PlayerListener.java +++ b/main/src/main/java/me/blackvein/quests/listeners/PlayerListener.java @@ -663,7 +663,9 @@ public class PlayerListener implements Listener { @EventHandler public void onInventoryClick(InventoryClickEvent evt) { if (evt.getWhoClicked() instanceof Player) { - if (evt.getInventory().getType() == InventoryType.FURNACE) { + if (evt.getInventory().getType() == InventoryType.FURNACE + || evt.getInventory().getType().name().equals("BLAST_FURNACE") + || evt.getInventory().getType().name().equals("SMOKER")) { if (evt.getSlotType() == SlotType.RESULT) { Quester quester = plugin.getQuester(evt.getWhoClicked().getUniqueId()); for (Quest quest : plugin.getQuests()) {