2023-02-28 13:13:59 +01:00
|
|
|
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
|
2023-06-08 10:47:19 +02:00
|
|
|
index 090771dce76f4e8037b6b2df9fc0dad7fe73411d..7771748a15c153352ce4874495f5fa7437aaf9a7 100644
|
2023-02-28 13:13:59 +01:00
|
|
|
--- a/src/main/java/net/minecraft/world/level/Level.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/level/Level.java
|
2023-06-08 10:47:19 +02:00
|
|
|
@@ -529,6 +529,7 @@ public abstract class Level implements LevelAccessor, AutoCloseable {
|
2023-02-28 13:13:59 +01:00
|
|
|
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;
|
|
|
|
}
|