SPIGOT-7622: Fix error with Player#sendSignChange
This commit is contained in:
parent
08ce626368
commit
3b72391602
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user