Might fix #730
This commit is contained in:
parent
05cf583931
commit
89c94d71c4
1 changed files with 6 additions and 4 deletions
|
@ -653,11 +653,13 @@ public class EnergyValueRegistry implements INBTTaggable
|
|||
NBTTagList stackMappingTagList = new NBTTagList();
|
||||
for (WrappedStack wrappedStack : stackMappings.keySet())
|
||||
{
|
||||
if (wrappedStack != null && stackMappings.get(wrappedStack) != null) {
|
||||
NBTTagCompound stackMappingCompound = new NBTTagCompound();
|
||||
stackMappingCompound.setTag("wrappedStack", WrappedStack.toNBTTagCompound(wrappedStack));
|
||||
stackMappingCompound.setTag("energyValue", EnergyValue.writeEnergyValueToNBT(stackMappings.get(wrappedStack)));
|
||||
stackMappingTagList.appendTag(stackMappingCompound);
|
||||
}
|
||||
}
|
||||
nbtTagCompound.setTag("stackMappingList", stackMappingTagList);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue