Fix dimension data not being saved (#4667)

This commit is contained in:
Ben Staddon authored and LexManos committed 2018-01-07 23:16:33 -08:00
1 parent 10b8d47b53
commit 4b1b0d83e9
1 file changed
+1 -1
@@ -36,7 +36,7 @@
+ for (Entry<Integer, NBTTagCompound> entry : this.field_186348_N.entrySet())
{
- nbttagcompound1.func_74782_a(String.valueOf(((DimensionType)entry.getKey()).func_186068_a()), entry.getValue());
+ if (entry.getValue() != null || entry.getValue().func_82582_d()) continue;
+ if (entry.getValue() == null || entry.getValue().func_82582_d()) continue;
+ nbttagcompound1.func_74782_a(String.valueOf(entry.getKey()), entry.getValue());
}