Archiviert
13
0

Some assumptions are better than others.

Dieser Commit ist enthalten in:
Nate Mortensen 2014-05-24 23:45:45 -06:00 committet von Travis Watkins
Ursprung 0a45c3ebf7
Commit 47b57e6bcf

Datei anzeigen

@ -504,7 +504,7 @@ public abstract class Container {
itemstack.count -= maxStack - itemstack1.count;
itemstack1.count = maxStack;
slot.f();
flag1 = itemstack.count == 0; // Don't give a success return if we have leftovers
flag1 = true;
}
// CraftBukkit end
}
@ -530,10 +530,8 @@ public abstract class Container {
if (itemstack1 == null) {
slot.set(itemstack.cloneItemStack());
slot.f();
// CraftBukkit start - Don't assume entire stack went in
itemstack.count -= slot.getItem().count;
flag1 = itemstack.count == 0;
// CraftBukkit end
itemstack.count = 0;
flag1 = true;
break;
}