mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-01 08:20:51 +01:00
1e7dd72f15
The game uses 0.95d now
19 lines
995 B
Diff
19 lines
995 B
Diff
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 436c16feb53b3dbf32e86f1960714d3d3ffeffd8..da037e8e62c1fb51f13c3fe0dd9fc2061209ca8f 100644
|
|
--- a/src/main/java/net/minecraft/world/level/Level.java
|
|
+++ b/src/main/java/net/minecraft/world/level/Level.java
|
|
@@ -923,6 +923,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;
|
|
}
|