mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-28 07:36:01 +00:00
Fix a few containers being offset
This commit is contained in:
1 parent
e06076f05e
commit
f8b162bc31
9 files changed
+48
-2
No files matched your search
@@ -71,4 +71,9 @@ public class ContainerDigitalMiner extends ContainerMekanism<TileEntityDigitalMi
|
||||
|
||||
addSlotToContainer(new SlotDischarge(tileEntity, 27, 152, 6));
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getInventoryOffset() {
|
||||
return 148;
|
||||
}
|
||||
}
|
||||
@@ -55,6 +55,11 @@ public class ContainerFactory extends ContainerMekanism<TileEntityFactory> {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getInventoryOffset() {
|
||||
return 95;
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
public ItemStack transferStackInSlot(EntityPlayer player, int slotID) {
|
||||
|
||||
@@ -131,4 +131,9 @@ public class ContainerFormulaicAssemblicator extends ContainerMekanism<TileEntit
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getInventoryOffset() {
|
||||
return 148;
|
||||
}
|
||||
}
|
||||
@@ -23,15 +23,21 @@ public abstract class ContainerMekanism<TILE extends TileEntityContainerBlock> e
|
||||
}
|
||||
}
|
||||
|
||||
protected int getInventoryOffset() {
|
||||
return 84;
|
||||
}
|
||||
|
||||
protected void addInventorySlots(InventoryPlayer inventory) {
|
||||
int offset = getInventoryOffset();
|
||||
for (int slotY = 0; slotY < 3; slotY++) {
|
||||
for (int slotX = 0; slotX < 9; slotX++) {
|
||||
addSlotToContainer(new Slot(inventory, slotX + slotY * 9 + 9, 8 + slotX * 18, 84 + slotY * 18));
|
||||
addSlotToContainer(new Slot(inventory, slotX + slotY * 9 + 9, 8 + slotX * 18, offset + slotY * 18));
|
||||
}
|
||||
}
|
||||
|
||||
offset += 58;
|
||||
for (int slotY = 0; slotY < 9; slotY++) {
|
||||
addSlotToContainer(new Slot(inventory, slotY, 8 + slotY * 18, 142));
|
||||
addSlotToContainer(new Slot(inventory, slotY, 8 + slotY * 18, offset));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -75,4 +75,9 @@ public class ContainerOredictionificator extends ContainerMekanism<TileEntityOre
|
||||
addSlotToContainer(new Slot(tileEntity, 0, 26, 115));
|
||||
addSlotToContainer(new SlotOutput(tileEntity, 1, 134, 115));
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getInventoryOffset() {
|
||||
return 148;
|
||||
}
|
||||
}
|
||||
@@ -44,6 +44,11 @@ public class ContainerPersonalChest extends ContainerMekanism<TileEntityPersonal
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getInventoryOffset() {
|
||||
return 148;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void closeInventory(EntityPlayer entityplayer) {
|
||||
if (isBlock) {
|
||||
|
||||
@@ -53,4 +53,9 @@ public class ContainerQuantumEntangloporter extends ContainerMekanism<TileEntity
|
||||
protected void addSlots() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getInventoryOffset() {
|
||||
return 148;
|
||||
}
|
||||
}
|
||||
@@ -72,4 +72,9 @@ public class ContainerSecurityDesk extends ContainerMekanism<TileEntitySecurityD
|
||||
addSlotToContainer(new Slot(tileEntity, 0, 146, 18));
|
||||
addSlotToContainer(new Slot(tileEntity, 1, 146, 97));
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getInventoryOffset() {
|
||||
return 148;
|
||||
}
|
||||
}
|
||||
@@ -71,4 +71,9 @@ public class ContainerTeleporter extends ContainerMekanism<TileEntityTeleporter>
|
||||
protected void addSlots() {
|
||||
addSlotToContainer(new SlotDischarge(tileEntity, 0, 153, 7));
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getInventoryOffset() {
|
||||
return 148;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user