From 5fe70f50c176bf34dcc86f579b3b8535b6ba0a76 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Wed, 14 Jun 2023 18:36:22 +1000 Subject: [PATCH] Fix sendSignChange not working By: md_5 --- .../java/org/bukkit/craftbukkit/entity/CraftPlayer.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index 058924b92..6f9addfc1 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -702,11 +702,12 @@ public class CraftPlayer extends CraftHumanEntity implements Player { IChatBaseComponent[] components = CraftSign.sanitizeLines(lines); TileEntitySign sign = new TileEntitySign(CraftLocation.toBlockPosition(loc), Blocks.OAK_SIGN.defaultBlockState()); SignText text = sign.getFrontText(); - text.setColor(EnumColor.byId(dyeColor.getWoolData())); - text.setHasGlowingText(hasGlowingText); + text = text.setColor(EnumColor.byId(dyeColor.getWoolData())); + text = text.setHasGlowingText(hasGlowingText); for (int i = 0; i < components.length; i++) { - text.setMessage(i, components[i]); + text = text.setMessage(i, components[i]); } + sign.setText(text, true); getHandle().connection.send(sign.getUpdatePacket()); }