This commit is contained in:
Pahimar 2014-09-04 21:12:22 -04:00
parent 05cf583931
commit 89c94d71c4

View file

@ -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);
}
}