diff options
Diffstat (limited to 'patches/server/0844-Update-the-flag-when-a-captured-block-state-is-outda.patch')
-rw-r--r-- | patches/server/0844-Update-the-flag-when-a-captured-block-state-is-outda.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/patches/server/0844-Update-the-flag-when-a-captured-block-state-is-outda.patch b/patches/server/0844-Update-the-flag-when-a-captured-block-state-is-outda.patch new file mode 100644 index 0000000000..acec71e5bc --- /dev/null +++ b/patches/server/0844-Update-the-flag-when-a-captured-block-state-is-outda.patch @@ -0,0 +1,18 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Lulu13022002 <[email protected]> +Date: Sat, 18 Feb 2023 16:23:18 +0100 +Subject: [PATCH] Update the flag when a captured block state is outdated + + +diff --git a/src/main/java/net/minecraft/world/level/Level.java b/src/main/java/net/minecraft/world/level/Level.java +index 2cbb3fcae6a8e26ee4bc2a9c88e64984da15ce86..5fcdb88dd2aa8c8c57d57935d15ea92c1015670e 100644 +--- a/src/main/java/net/minecraft/world/level/Level.java ++++ b/src/main/java/net/minecraft/world/level/Level.java +@@ -451,6 +451,7 @@ public abstract class Level implements LevelAccessor, AutoCloseable { + blockstate = CapturedBlockState.getTreeBlockState(this, pos, flags); + this.capturedBlockStates.put(pos.immutable(), blockstate); + } ++ blockstate.setFlag(flags); // Paper - update the flag also + blockstate.setData(state); + return true; + } |