ForgePatch/patches/minecraft/net/minecraft/world/storage/WorldInfo.java.patch

11 lines
455 B
Diff
Raw Normal View History

--- a/net/minecraft/world/storage/WorldInfo.java
+++ b/net/minecraft/world/storage/WorldInfo.java
2020-01-22 21:11:13 +00:00
@@ -362,6 +362,7 @@
2019-05-23 23:02:15 +00:00
CompoundNBT compoundnbt1 = new CompoundNBT();
2019-05-23 23:02:15 +00:00
for(Entry<DimensionType, CompoundNBT> entry : this.field_186348_N.entrySet()) {
+ if (entry.getValue() == null || entry.getValue().isEmpty()) continue;
2019-05-23 23:02:15 +00:00
compoundnbt1.func_218657_a(String.valueOf(entry.getKey().func_186068_a()), entry.getValue());
}