diff options
author | Jake Potrebic <[email protected]> | 2023-03-18 15:08:20 -0700 |
---|---|---|
committer | Jake Potrebic <[email protected]> | 2023-03-19 11:59:45 -0700 |
commit | 15aeb703ac1161d0df9d7c8d1648b52b85d76f8e (patch) | |
tree | 86fe6d3e5fec0b1f5e0b19e5e6c4fd31fc6c35db | |
parent | 1d4335552611d0a258963a8574cc0c3eee51af03 (diff) | |
download | Paper-15aeb703ac1161d0df9d7c8d1648b52b85d76f8e.tar.gz Paper-15aeb703ac1161d0df9d7c8d1648b52b85d76f8e.zip |
reload BlockData string cache after apply tags to server
-rw-r--r-- | patches/server/0969-Tag-Modification-API.patch | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/patches/server/0969-Tag-Modification-API.patch b/patches/server/0969-Tag-Modification-API.patch index 6b409d0764..71f27dd230 100644 --- a/patches/server/0969-Tag-Modification-API.patch +++ b/patches/server/0969-Tag-Modification-API.patch @@ -97,10 +97,10 @@ index 34888b525fd35ac64e6e5e66036ad965a6769959..b36152de02637ed6b1beccc4f7cbdd7c + // Paper end } diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java -index f9a9d2bb7b6d1bf4a0931438de4d8c7ee0757479..ddddfdb95e9936a560e435b807d9cc3e7ac0b234 100644 +index f9a9d2bb7b6d1bf4a0931438de4d8c7ee0757479..ee6a71d2c81a872ae3b9f3ee042a99c784dd8911 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java -@@ -2919,4 +2919,22 @@ public final class CraftServer implements Server { +@@ -2919,4 +2919,23 @@ public final class CraftServer implements Server { } // Paper end @@ -111,6 +111,7 @@ index f9a9d2bb7b6d1bf4a0931438de4d8c7ee0757479..ddddfdb95e9936a560e435b807d9cc3e + ((io.papermc.paper.tag.PaperTagUpdate<?, ?>) update).applyToRegistry(this.console.registryAccess()); + } + net.minecraft.world.level.block.Blocks.rebuildCache(); ++ org.bukkit.craftbukkit.block.data.CraftBlockData.reloadCache(); + this.playerList.broadcastAll(createTagUpdatePacket(tagUpdates, this.console.registryAccess())); + } + |