Add method to send fake sign updates to players. Adds BUKKIT-2300

This commit is contained in:
Patrick Seidel
2013-03-21 16:51:35 -04:00
committed by Travis Watkins
parent 903575ff2e
commit 0df7555cec
4 changed files with 53 additions and 24 deletions

View File

@@ -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);