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:
parent
b518f7f6ff
commit
fa5c919e37
@ -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)) {
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user