From dae2daba042e71e5f4cce7aacc4fd55e7a8f838d Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Sat, 30 Nov 2013 19:25:57 -0700 Subject: [PATCH] Fixes to Woodcutter. --- BankEconomyMod/src/me/kaZep/Base/PlayerListener.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/BankEconomyMod/src/me/kaZep/Base/PlayerListener.java b/BankEconomyMod/src/me/kaZep/Base/PlayerListener.java index d913106..c829f3b 100644 --- a/BankEconomyMod/src/me/kaZep/Base/PlayerListener.java +++ b/BankEconomyMod/src/me/kaZep/Base/PlayerListener.java @@ -10404,9 +10404,10 @@ implements Listener } //*****************************// Job buffs here - if (event.getSlotType()==SlotType.RESULT && (event.getClick()==ClickType.LEFT || event.getClick()==ClickType.RIGHT) && (event.getInventory().getType()==InventoryType.CRAFTING || event.getInventory().getType()==InventoryType.PLAYER || event.getInventory().getType()==InventoryType.WORKBENCH)) { + Bukkit.getLogger().info("Click type is "+event.getClick().name()); + if (event.getSlotType()==SlotType.RESULT && (event.getInventory().getType()==InventoryType.CRAFTING || event.getInventory().getType()==InventoryType.PLAYER || event.getInventory().getType()==InventoryType.WORKBENCH)) { //Check if level 5 digger. - if (this.plugin.hasJobBuff("Digger", p, Job.JOB5) && event.getCurrentItem().getType()==Material.CLAY_BALL) { + if ((this.plugin.hasJobBuff("Digger", p, Job.JOB5) || this.plugin.hasJobBuff("Digger", p, Job.JOB40)) && event.getCurrentItem().getType()==Material.CLAY_BALL) { //This could potentially be an artifact. Check the lore. ItemStack result = event.getInventory().getItem(event.getSlot()); if (result.hasItemMeta() && result.getItemMeta().hasLore()) {