mirror of
https://github.com/GTNewHorizons/StorageDrawers.git
synced 2026-11-19 03:49:33 +00:00
Reset drawer ItemIO when slot layout is rebuilt (#73)
This commit is contained in:
1 parent
b93cfb2a76
commit
85efc53e5f
1 file changed
+4
@@ -100,6 +100,8 @@ public abstract class TileEntityDrawers extends BaseTileEntity
|
||||
for (int i = 0; i < drawerCount; i++) drawers[i] = createDrawer(i);
|
||||
|
||||
inventory = new StorageInventory(this, getSideManager(), this);
|
||||
|
||||
io = null; // Rebuild ItemIO after drawer slots are recreated.
|
||||
}
|
||||
|
||||
public int getDirection() {
|
||||
@@ -817,6 +819,8 @@ public abstract class TileEntityDrawers extends BaseTileEntity
|
||||
|
||||
materialTrim = null;
|
||||
if (tag.hasKey("MatT")) materialTrim = ItemStack.loadItemStackFromNBT(tag.getCompoundTag("MatT"));
|
||||
|
||||
io = null; // Rebuild ItemIO after drawer slots are recreated.
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user