Fix dimension data not being saved (#4667)

This commit is contained in:
Ben Staddon 2018-01-08 07:16:33 +00:00 committed by LexManos
parent 10b8d47b53
commit 4b1b0d83e9

View file

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