mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-28 21:56:28 +01:00
Unstable
This commit is contained in:
parent
f8e5216b4d
commit
6b339dc1ce
@ -538,7 +538,6 @@ public class PlayerListener implements Listener {
|
|||||||
ItemStack oldStack = evt.getCurrentItem();
|
ItemStack oldStack = evt.getCurrentItem();
|
||||||
Inventory inv = plugin.getServer().createInventory(null, evt.getInventory().getType());
|
Inventory inv = plugin.getServer().createInventory(null, evt.getInventory().getType());
|
||||||
HashMap<Integer, ItemStack> map = inv.addItem(oldStack);
|
HashMap<Integer, ItemStack> map = inv.addItem(oldStack);
|
||||||
|
|
||||||
if (map.isEmpty() == false) {
|
if (map.isEmpty() == false) {
|
||||||
|
|
||||||
ItemStack newStack = oldStack.clone();
|
ItemStack newStack = oldStack.clone();
|
||||||
@ -546,7 +545,6 @@ public class PlayerListener implements Listener {
|
|||||||
quester.collectItem(newStack);
|
quester.collectItem(newStack);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Collecting " + oldStack);
|
|
||||||
quester.collectItem(oldStack);
|
quester.collectItem(oldStack);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user