Fix instances where Signs have null lines. Addresses BUKKIT-684

This commit is contained in:
V10lator
2012-08-18 14:50:09 +02:00
committed by feildmaster
parent 450edc3004
commit e3ae188ed2
2 changed files with 10 additions and 1 deletions

View File

@@ -1302,6 +1302,9 @@ public class NetServerHandler extends NetHandler {
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.isEditable = false;
}