You can now shift click items from the Grid crafting slots to the player inventory when the Grid is disconnected, fixes #1287

This commit is contained in:
raoulvdberge
2017-06-09 22:55:52 +02:00
parent 7dd79cd453
commit 19f59d4070
2 changed files with 4 additions and 1 deletions

View File

@@ -215,6 +215,8 @@ public class ContainerGrid extends ContainerBase {
if (itemHandler != null) {
slot.putStack(itemHandler.onShiftClick((EntityPlayerMP) player, stack));
} else if (slot instanceof SlotGridCrafting && mergeItemStack(stack, 4, 4 + (9 * 4), false)) {
slot.onSlotChanged();
}
}
@@ -228,7 +230,7 @@ public class ContainerGrid extends ContainerBase {
@Override
protected boolean isHeldItemDisabled() {
// Here we check for the concrete portable grid type, not IPortableGrid, because we can move the held item in the tile
// Here we check for the concrete portable grid type, not IPortableGrid, because we *CAN* move the held item in the portable grid tile
return grid instanceof WirelessGrid || grid instanceof PortableGrid;
}
}