From 4b1b0d83e99ba77f7847fb387017fb744396f8aa Mon Sep 17 00:00:00 2001 From: Ben Staddon Date: Mon, 8 Jan 2018 07:16:33 +0000 Subject: [PATCH] Fix dimension data not being saved (#4667) --- .../minecraft/net/minecraft/world/storage/WorldInfo.java.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/minecraft/net/minecraft/world/storage/WorldInfo.java.patch b/patches/minecraft/net/minecraft/world/storage/WorldInfo.java.patch index 47cedd58b..798480c46 100644 --- a/patches/minecraft/net/minecraft/world/storage/WorldInfo.java.patch +++ b/patches/minecraft/net/minecraft/world/storage/WorldInfo.java.patch @@ -36,7 +36,7 @@ + for (Entry 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()); }