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

This commit is contained in:
Patrick Seidel authored and Travis Watkins committed 2014-04-02 18:05:03 -05:00
1 parent 903575ff2e
commit 0df7555cec
4 files changed
+53 -24

No files matched your search

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