From fa5c919e377b937a8c1033dea3c22404f362b454 Mon Sep 17 00:00:00 2001 From: Zrips Date: Thu, 1 Dec 2016 15:28:23 +0200 Subject: [PATCH] We need to clone itemstack before processing to avoid having updated item stacks (credit for fixing it goes to BlueSoapTurtle) --- com/gamingmesh/jobs/listeners/JobsPaymentListener.java | 2 +- plugin.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/com/gamingmesh/jobs/listeners/JobsPaymentListener.java b/com/gamingmesh/jobs/listeners/JobsPaymentListener.java index 0cb36b8c..45ef0310 100644 --- a/com/gamingmesh/jobs/listeners/JobsPaymentListener.java +++ b/com/gamingmesh/jobs/listeners/JobsPaymentListener.java @@ -517,7 +517,7 @@ public class JobsPaymentListener implements Listener { // Make sure we are actually crafting anything if (hasItems(toCraft)) if (event.isShiftClick()) - schedulePostDetection(player, toCraft, jPlayer, resultStack); + schedulePostDetection(player, toCraft.clone(), jPlayer, resultStack.clone()); else { // The items are stored in the cursor. Make sure there's enough space. if (isStackSumLegal(toCraft, toStore)) { diff --git a/plugin.yml b/plugin.yml index 85ebb51a..c2364b6e 100644 --- a/plugin.yml +++ b/plugin.yml @@ -1,7 +1,7 @@ name: Jobs description: Jobs Plugin for the BukkitAPI main: com.gamingmesh.jobs.Jobs -version: 3.7.0 +version: 3.7.1 author: phrstbrn softdepend: [Vault, iConomy, MythicMobs, McMMO] commands: