From 110a32b6479f939aef97bb0cf8d671e41f789f1d Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Mon, 5 Mar 2012 15:28:36 -0500 Subject: [PATCH] Fixed copy error in DoubleChest's inventory By: Tahg --- .../bukkit/craftbukkit/inventory/CraftInventoryDoubleChest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryDoubleChest.java b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryDoubleChest.java index 500e170820..19ae6682d3 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryDoubleChest.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryDoubleChest.java @@ -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); } }