diff --git a/src/main/java/com/gamingmesh/jobs/container/ItemBonusCache.java b/src/main/java/com/gamingmesh/jobs/container/ItemBonusCache.java index d3e0eaed..2e34734f 100644 --- a/src/main/java/com/gamingmesh/jobs/container/ItemBonusCache.java +++ b/src/main/java/com/gamingmesh/jobs/container/ItemBonusCache.java @@ -3,7 +3,6 @@ package com.gamingmesh.jobs.container; import org.bukkit.entity.Player; import com.gamingmesh.jobs.Jobs; -import com.gamingmesh.jobs.stuff.Debug; public class ItemBonusCache { @@ -36,7 +35,6 @@ public class ItemBonusCache { } public ItemBonusCache recheck() { - Debug.D("recalculating item bonus"); bm = Jobs.getPlayerManager().getInventoryBoost(player, job); lastCheck = System.currentTimeMillis(); return this; diff --git a/src/main/java/com/gamingmesh/jobs/listeners/JobsPaymentListener.java b/src/main/java/com/gamingmesh/jobs/listeners/JobsPaymentListener.java index 864ecb1a..a98b6f9e 100644 --- a/src/main/java/com/gamingmesh/jobs/listeners/JobsPaymentListener.java +++ b/src/main/java/com/gamingmesh/jobs/listeners/JobsPaymentListener.java @@ -485,19 +485,26 @@ public class JobsPaymentListener implements Listener { for (int i = 0; i < sourceItems.length; i++) { if (sourceItems[i] == null) continue; - if (sourceItems[i].getTypeId() > 0) { - if (sourceItems[i].getTypeId() == 351) + int id = sourceItems[i].getTypeId(); + if (id > 0) { + if (id == 351) DyeStack.add(sourceItems[i]); y++; if (y == 0) - first = sourceItems[i].getTypeId(); + first = id; if (y == 1) - second = sourceItems[i].getTypeId(); + second = id; if (y == 2) - third = sourceItems[i].getTypeId(); + third = id; } - if (sourceItems[i].getTypeId() == 299) + if (id == 299) + leather = true; + if (id == 300) + leather = true; + if (id == 301) + leather = true; + if (id == 298) leather = true; }