diff --git a/src/main/java/appeng/container/AEBaseContainer.java b/src/main/java/appeng/container/AEBaseContainer.java index 7ed6e0e57..806a59872 100644 --- a/src/main/java/appeng/container/AEBaseContainer.java +++ b/src/main/java/appeng/container/AEBaseContainer.java @@ -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