@@ -79,6 +79,7 @@ import net.minecraft.network.protocol.game.PacketPlayOutPlayerListHeaderFooter;
|
||||
import net.minecraft.network.protocol.game.PacketPlayOutRemoveEntityEffect;
|
||||
import net.minecraft.network.protocol.game.PacketPlayOutSpawnPosition;
|
||||
import net.minecraft.network.protocol.game.PacketPlayOutStopSound;
|
||||
import net.minecraft.network.protocol.game.PacketPlayOutTileEntityData;
|
||||
import net.minecraft.network.protocol.game.PacketPlayOutUpdateAttributes;
|
||||
import net.minecraft.network.protocol.game.PacketPlayOutUpdateHealth;
|
||||
import net.minecraft.network.protocol.game.PacketPlayOutWorldEvent;
|
||||
@@ -800,7 +801,6 @@ 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);
|
||||
@@ -809,7 +809,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
||||
}
|
||||
sign.setText(text, true);
|
||||
|
||||
getHandle().connection.send(sign.getUpdatePacket());
|
||||
getHandle().connection.send(new PacketPlayOutTileEntityData(sign.getBlockPos(), sign.getType(), sign.getUpdateTag(getHandle().registryAccess())));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user