Fixes interaction bug between Sky Stone Chest and Inventory Tweaks upon sort via space + click
This commit is contained in:
parent
a081a4f066
commit
2ef04f1303
1 changed files with 10 additions and 8 deletions
|
@ -348,14 +348,7 @@ 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( this.locked.contains( i ) )
|
||||
this.addSlotToContainer( new SlotDisabled( inventoryPlayer, i, 8 + i * 18 + offset_x, 58 + offset_y ) );
|
||||
else
|
||||
this.addSlotToContainer( new SlotPlayerHotBar( inventoryPlayer, i, 8 + i * 18 + offset_x, 58 + offset_y ) );
|
||||
}
|
||||
|
||||
// bind player inventory
|
||||
for( int i = 0; i < 3; i++ )
|
||||
{
|
||||
for( int j = 0; j < 9; j++ )
|
||||
|
@ -366,6 +359,15 @@ public abstract class AEBaseContainer extends Container
|
|||
this.addSlotToContainer( new SlotPlayerInv( inventoryPlayer, j + i * 9 + 9, 8 + j * 18 + offset_x, offset_y + i * 18 ) );
|
||||
}
|
||||
}
|
||||
|
||||
// bind player hotbar
|
||||
for( int i = 0; i < 9; i++ )
|
||||
{
|
||||
if( this.locked.contains( i ) )
|
||||
this.addSlotToContainer( new SlotDisabled( inventoryPlayer, i, 8 + i * 18 + offset_x, 58 + offset_y ) );
|
||||
else
|
||||
this.addSlotToContainer( new SlotPlayerHotBar( inventoryPlayer, i, 8 + i * 18 + offset_x, 58 + offset_y ) );
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue