1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-12-31 21:37:57 +01:00

We need to clone itemstack before processing to avoid having updated

item stacks (credit for fixing it goes to BlueSoapTurtle)
This commit is contained in:
Zrips 2016-12-01 15:28:23 +02:00
parent b518f7f6ff
commit fa5c919e37
2 changed files with 2 additions and 2 deletions

View File

@ -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)) {

View File

@ -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: