Fixed shift clicking upgrades into Interface making upgrades go to import slots

This commit is contained in:
raoulvdberge
2018-07-15 21:28:06 +02:00
parent e766e8a7c8
commit 19483d9d9a
2 changed files with 6 additions and 3 deletions

View File

@@ -40,12 +40,14 @@ public class ContainerInterface extends ContainerBase {
if (slot.getHasStack()) {
stack = slot.getStack();
if (index < 9) {
if (index < 9 || (index >= 9 + 9 + 9 && index < 9 + 9 + 9 + 4)) {
if (!mergeItemStack(stack, 9 + 9 + 9 + 4, inventorySlots.size(), false)) {
return ItemStack.EMPTY;
}
} else if (!mergeItemStack(stack, 0, 9, false)) {
return ItemStack.EMPTY;
} else if (!mergeItemStack(stack, 9 + 9 + 9, 9 + 9 + 9 + 4, false)) {
if (!mergeItemStack(stack, 0, 9, false)) {
return ItemStack.EMPTY;
}
}
if (stack.getCount() == 0) {