From 796cb29904ddf1d91f5d07b2e2d517044646c1e4 Mon Sep 17 00:00:00 2001 From: LexManos Date: Thu, 7 Apr 2022 11:40:08 -0700 Subject: [PATCH] Fix misaligned patch in BlockEntity.save. --- .../world/level/block/entity/BlockEntity.java.patch | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/patches/minecraft/net/minecraft/world/level/block/entity/BlockEntity.java.patch b/patches/minecraft/net/minecraft/world/level/block/entity/BlockEntity.java.patch index 5b54e0e019..d09e130c37 100644 --- a/patches/minecraft/net/minecraft/world/level/block/entity/BlockEntity.java.patch +++ b/patches/minecraft/net/minecraft/world/level/block/entity/BlockEntity.java.patch @@ -24,7 +24,7 @@ } public static BlockPos m_187472_(CompoundTag p_187473_) { -@@ -48,6 +_,8 @@ +@@ -48,9 +_,13 @@ } public void m_142466_(CompoundTag p_155245_) { @@ -33,15 +33,11 @@ } protected void m_183515_(CompoundTag p_187471_) { -@@ -93,6 +_,8 @@ - p_187479_.m_128405_("x", this.f_58858_.m_123341_()); - p_187479_.m_128405_("y", this.f_58858_.m_123342_()); - p_187479_.m_128405_("z", this.f_58858_.m_123343_()); -+ if (this.customTileData != null) p_187479_.m_128365_("ForgeData", this.customTileData.m_6426_()); -+ if (getCapabilities() != null) p_187479_.m_128365_("ForgeCaps", serializeCaps()); ++ if (this.customTileData != null) p_187471_.m_128365_("ForgeData", this.customTileData.m_6426_()); ++ if (getCapabilities() != null) p_187471_.m_128365_("ForgeCaps", serializeCaps()); } - @Nullable + public final CompoundTag m_187480_() { @@ -163,6 +_,13 @@ public void m_7651_() {