SPIGOT-7622: Fix error with Player#sendSignChange

This commit is contained in:
md_5 2024-04-24 08:12:04 +10:00
parent 08ce626368
commit 3b72391602
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -800,6 +800,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
IChatBaseComponent[] components = CraftSign.sanitizeLines(lines);
TileEntitySign sign = new TileEntitySign(CraftLocation.toBlockPosition(loc), Blocks.OAK_SIGN.defaultBlockState());
sign.setLevel(getHandle().level());
SignText text = sign.getFrontText();
text = text.setColor(EnumColor.byId(dyeColor.getWoolData()));
text = text.setHasGlowingText(hasGlowingText);