Mimic Vanilla behavior with shift clicking.
This commit is contained in:
@@ -669,6 +669,14 @@ public abstract class AEBaseContainer extends Container
|
||||
|
||||
protected void bindPlayerInventory(InventoryPlayer inventoryPlayer, int offset_x, int offset_y)
|
||||
{
|
||||
for (int i = 0; i < 9; i++)
|
||||
{
|
||||
if ( locked.contains( i ) )
|
||||
addSlotToContainer( new SlotDisabled( inventoryPlayer, i, 8 + i * 18 + offset_x, 58 + offset_y ) );
|
||||
else
|
||||
addSlotToContainer( new SlotPlayerHotBar( inventoryPlayer, i, 8 + i * 18 + offset_x, 58 + offset_y ) );
|
||||
}
|
||||
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
for (int j = 0; j < 9; j++)
|
||||
@@ -679,14 +687,6 @@ public abstract class AEBaseContainer extends Container
|
||||
addSlotToContainer( new SlotPlayerInv( inventoryPlayer, j + i * 9 + 9, 8 + j * 18 + offset_x, offset_y + i * 18 ) );
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < 9; i++)
|
||||
{
|
||||
if ( locked.contains( i ) )
|
||||
addSlotToContainer( new SlotDisabled( inventoryPlayer, i, 8 + i * 18 + offset_x, 58 + offset_y ) );
|
||||
else
|
||||
addSlotToContainer( new SlotPlayerHotBar( inventoryPlayer, i, 8 + i * 18 + offset_x, 58 + offset_y ) );
|
||||
}
|
||||
}
|
||||
|
||||
public ItemStack shiftStoreItem(ItemStack input)
|
||||
|
||||
Reference in New Issue
Block a user