[Cosmetic] Update patches to be generated with latest stable git.
By: md_5 <md_5@live.com.au>
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
From 6a9329fd0687f6316cb92c898bf8ed4ed4b3550e Mon Sep 17 00:00:00 2001
|
||||
From c5482476ab6be812fbf52521e09ce0a199aab63a Mon Sep 17 00:00:00 2001
|
||||
From: md_5 <md_5@live.com.au>
|
||||
Date: Mon, 18 Mar 2013 20:01:44 +1100
|
||||
Subject: [PATCH] Prevent NPE in CraftSign
|
||||
|
||||
This commit prevents the constructor of CraftSign throwing an NPE when it cannot get the sign tile entity. Instead it will fallback to a 4 empty lined sign, and not try to do anything to those lines on .update().
|
||||
---
|
||||
.../org/bukkit/craftbukkit/block/CraftSign.java | 8 +++++++-
|
||||
1 files changed, 7 insertions(+), 1 deletions(-)
|
||||
src/main/java/org/bukkit/craftbukkit/block/CraftSign.java | 8 +++++++-
|
||||
1 file changed, 7 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/main/java/org/bukkit/craftbukkit/block/CraftSign.java b/src/main/java/org/bukkit/craftbukkit/block/CraftSign.java
|
||||
index 1647100..43c4434 100644
|
||||
@@ -35,5 +35,5 @@ index 1647100..43c4434 100644
|
||||
if(lines[i] != null) {
|
||||
sign.lines[i] = lines[i];
|
||||
--
|
||||
1.7.0.4
|
||||
1.8.2.1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user