diff options
author | Nassim Jahnke <[email protected]> | 2022-01-03 10:55:08 +0100 |
---|---|---|
committer | Nassim Jahnke <[email protected]> | 2022-01-03 10:55:08 +0100 |
commit | cc43ba70ff3107e5a044a5f7f37b7f5536058939 (patch) | |
tree | 50f529c360fa6504ebb7ea513f7aa2c614ff6dc8 | |
parent | bf23668bc56a31ccf9ff7c7b290bb0442afebff6 (diff) | |
download | Paper-cc43ba70ff3107e5a044a5f7f37b7f5536058939.tar.gz Paper-cc43ba70ff3107e5a044a5f7f37b7f5536058939.zip |
Fix filtered text not being applied on sign update
-rw-r--r-- | patches/server/0011-Adventure.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/0011-Adventure.patch b/patches/server/0011-Adventure.patch index 755337e4b0..62d093ac10 100644 --- a/patches/server/0011-Adventure.patch +++ b/patches/server/0011-Adventure.patch @@ -2001,7 +2001,7 @@ index 0beb96dc896f63003e1b1ae458b73902bdbe648a..102eb86bad3000f258775ac06ecd1a6d public String getCustomName() { EnchantmentTableBlockEntity enchant = this.getSnapshot(); diff --git a/src/main/java/org/bukkit/craftbukkit/block/CraftSign.java b/src/main/java/org/bukkit/craftbukkit/block/CraftSign.java -index 5422bec518f96ed559898cd746663f3492466f93..b0a7f558cfe0f2ff859ab7b2db38ac303e9ae842 100644 +index 5422bec518f96ed559898cd746663f3492466f93..772bb8c7d9549059a2b446c36d17dd649d245dbb 100644 --- a/src/main/java/org/bukkit/craftbukkit/block/CraftSign.java +++ b/src/main/java/org/bukkit/craftbukkit/block/CraftSign.java @@ -11,34 +11,60 @@ import org.bukkit.craftbukkit.util.CraftChatMessage; @@ -2093,7 +2093,7 @@ index 5422bec518f96ed559898cd746663f3492466f93..b0a7f558cfe0f2ff859ab7b2db38ac30 continue; // The line contents are still the same, skip. } - sign.setMessage(i, CraftChatMessage.fromString(line)[0]); -+ sign.messages[i] = io.papermc.paper.adventure.PaperAdventure.asVanilla(component); ++ sign.setMessage(i, io.papermc.paper.adventure.PaperAdventure.asVanilla(component)); } + // Paper end } |