From dbf98d388878e5fc9fbef595aebad6857d7695dc Mon Sep 17 00:00:00 2001 From: Curle Date: Thu, 2 Dec 2021 19:16:47 +0000 Subject: [PATCH] Save Chunk capabilities to the chunk, rather than recursively to the capabilities. --- .../world/level/chunk/storage/ChunkSerializer.java.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/minecraft/net/minecraft/world/level/chunk/storage/ChunkSerializer.java.patch b/patches/minecraft/net/minecraft/world/level/chunk/storage/ChunkSerializer.java.patch index cdcf17a3d0..4dbbc58d3e 100644 --- a/patches/minecraft/net/minecraft/world/level/chunk/storage/ChunkSerializer.java.patch +++ b/patches/minecraft/net/minecraft/world/level/chunk/storage/ChunkSerializer.java.patch @@ -51,7 +51,7 @@ + LevelChunk levelChunk = (LevelChunk) p_63456_; + try { + final CompoundTag capTag = levelChunk.writeCapsToNBT(); -+ if (capTag != null) capTag.m_128365_("ForgeCaps", capTag); ++ if (capTag != null) compoundtag.m_128365_("ForgeCaps", capTag); + } catch (Exception exception) { + LogManager.getLogger().error("A capability provider has thrown an exception trying to write state. It will not persist. Report this to the mod author", exception); + }