From 0d9fa0f8864e36e74511b10358a6aa7bd08eb7d6 Mon Sep 17 00:00:00 2001 From: Lulu13022002 <41980282+Lulu13022002@users.noreply.github.com> Date: Tue, 28 Feb 2023 13:13:59 +0100 Subject: [PATCH] Update the flag when a captured block state is outdated (#8860) --- ...-when-a-captured-block-state-is-outda.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 patches/server/Update-the-flag-when-a-captured-block-state-is-outda.patch diff --git a/patches/server/Update-the-flag-when-a-captured-block-state-is-outda.patch b/patches/server/Update-the-flag-when-a-captured-block-state-is-outda.patch new file mode 100644 index 0000000000..e1b388ce85 --- /dev/null +++ b/patches/server/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 <41980282+Lulu13022002@users.noreply.github.com> +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 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 +--- a/src/main/java/net/minecraft/world/level/Level.java ++++ b/src/main/java/net/minecraft/world/level/Level.java +@@ -0,0 +0,0 @@ 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; + }