Mekanism Generators

Mekanism Generators

97M Downloads

SecurityDesk inventory always empty when placed (even when containing machines)

SkullOwner opened this issue ยท 1 comments

commented

Issue description:

The SecurityDesk does not update its inventory item list when placed while containing item nbt, making it realy easy to accidentally make any mekanism machine disappear.

Steps to reproduce:

  1. Place SecurityDesk.
  2. Put any compatible item in it.
  3. Break SecurityDesk, internal slots are not dropped only SecurityDesk with nbt data detailing item placed in slot is dropped.
  4. Place SecurityDesk.
  5. SecurityDesk no longer contains anything.

Version (make sure you are on the latest version before reporting):

Forge: forge-1.16.5-36.0.45
Mekanism: Mekanism-1.16.5-10.0.21.448
Other relevant version: direwolf20 1.16 modpack

Screenshot from NBTExplorer

After breaking:
Capture
After placing and breaking again:
Capture2

commented

While looking at the code it seems that ItemBlockSecurityDesk does not implement IItemSustainedInventory. Not sure if this might be the problem or not.