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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user