mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 12:13:54 -07:00
Add method to send fake sign updates to players. Adds BUKKIT-2300
This commit is contained in:
committed by
Travis Watkins
parent
903575ff2e
commit
0df7555cec
@@ -1583,12 +1583,7 @@ public class PlayerConnection implements PacketPlayInListener {
|
||||
this.server.getPluginManager().callEvent(event);
|
||||
|
||||
if (!event.isCancelled()) {
|
||||
for (int l = 0; l < 4; ++l) {
|
||||
tileentitysign1.lines[l] = event.getLine(l);
|
||||
if(tileentitysign1.lines[l] == null) {
|
||||
tileentitysign1.lines[l] = "";
|
||||
}
|
||||
}
|
||||
tileentitysign1.lines = org.bukkit.craftbukkit.block.CraftSign.sanitizeLines(event.getLines());
|
||||
tileentitysign1.isEditable = false;
|
||||
}
|
||||
// System.arraycopy(packetplayinupdatesign.f(), 0, tileentitysign1.lines, 0, 4);
|
||||
|
Reference in New Issue
Block a user