summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft
diff options
context:
space:
mode:
authorV10lator <v10lator@myway.de>2012-08-18 14:50:09 +0200
committerfeildmaster <admin@feildmaster.com>2012-08-21 20:17:29 -0500
commite3ae188ed284c029b8f32c941d840161c041e1fa (patch)
tree3a92161e71346e656b425953e3c2730ed11fe95d /src/main/java/net/minecraft
parent450edc300442a98a82389ed02d9b605d93fa5ecf (diff)
downloadcraftbukkit-e3ae188ed284c029b8f32c941d840161c041e1fa.tar
craftbukkit-e3ae188ed284c029b8f32c941d840161c041e1fa.tar.gz
craftbukkit-e3ae188ed284c029b8f32c941d840161c041e1fa.tar.lz
craftbukkit-e3ae188ed284c029b8f32c941d840161c041e1fa.tar.xz
craftbukkit-e3ae188ed284c029b8f32c941d840161c041e1fa.zip
Fix instances where Signs have null lines. Addresses BUKKIT-684
Diffstat (limited to 'src/main/java/net/minecraft')
-rw-r--r--src/main/java/net/minecraft/server/NetServerHandler.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/NetServerHandler.java b/src/main/java/net/minecraft/server/NetServerHandler.java
index a5b280d4..dbd1a5de 100644
--- a/src/main/java/net/minecraft/server/NetServerHandler.java
+++ b/src/main/java/net/minecraft/server/NetServerHandler.java
@@ -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;
}