Fixed copy error in DoubleChest's inventory

By: Tahg <tahgtahv@gmail.com>
This commit is contained in:
CraftBukkit/Spigot 2012-03-05 15:28:36 -05:00
parent b171b6ee36
commit 110a32b647

View file

@ -46,7 +46,7 @@ public class CraftInventoryDoubleChest extends CraftInventory implements DoubleC
System.arraycopy(items, 0, leftItems, 0, Math.min(left.getSize(),items.length));
left.setContents(leftItems);
if (items.length >= left.getSize()) {
System.arraycopy(items, 0, rightItems, left.getSize(), Math.min(right.getSize(), items.length - left.getSize()));
System.arraycopy(items, left.getSize(), rightItems, 0, Math.min(right.getSize(), items.length - left.getSize()));
right.setContents(rightItems);
}
}