mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-02 13:07:06 +01:00
Fixed copy error in DoubleChest's inventory
This commit is contained in:
parent
3f2c31e98c
commit
2ff8a8749f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue