SPIGOT-7622: Fix error with Player#sendSignChange
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -800,6 +800,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
|||||||
|
|
||||||
IChatBaseComponent[] components = CraftSign.sanitizeLines(lines);
|
IChatBaseComponent[] components = CraftSign.sanitizeLines(lines);
|
||||||
TileEntitySign sign = new TileEntitySign(CraftLocation.toBlockPosition(loc), Blocks.OAK_SIGN.defaultBlockState());
|
TileEntitySign sign = new TileEntitySign(CraftLocation.toBlockPosition(loc), Blocks.OAK_SIGN.defaultBlockState());
|
||||||
|
sign.setLevel(getHandle().level());
|
||||||
SignText text = sign.getFrontText();
|
SignText text = sign.getFrontText();
|
||||||
text = text.setColor(EnumColor.byId(dyeColor.getWoolData()));
|
text = text.setColor(EnumColor.byId(dyeColor.getWoolData()));
|
||||||
text = text.setHasGlowingText(hasGlowingText);
|
text = text.setHasGlowingText(hasGlowingText);
|
||||||
|
|||||||
Reference in New Issue
Block a user