Logistics Pipes

Logistics Pipes

13M Downloads

ItemModuleInformationManager.removeInformation breaks ItemIdentifier.getOrCreateTag

firelizzard18 opened this issue ยท 1 comments

commented

In my mod, I am adding NBT tags to items to track them. If I add an NBT tag to a logistics itemsink and then try to add it to a chassis, minecraft crashes. The issue is that

  1. removeInformation sets any NBT tags on the stack that are not in it's filter to null; and
  2. getOrCreateTag calls NBTTagCompound.copy;
  3. Which attempts to call NBTBase.copy (or a override thereof) on each value;
  4. Which will throw a NullPointerException if any of the values are empty.
commented

Thanks for the detailed description ๐Ÿ‘