
ItemModuleInformationManager.removeInformation breaks ItemIdentifier.getOrCreateTag
firelizzard18 opened this issue ยท 1 comments
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
removeInformation
sets any NBT tags on the stack that are not in it's filter to null; andgetOrCreateTag
callsNBTTagCompound.copy
;- Which attempts to call
NBTBase.copy
(or a override thereof) on each value; - Which will throw a
NullPointerException
if any of the values are empty.