diff options
author | md_5 <git@md-5.net> | 2018-07-16 16:20:46 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-07-16 16:20:46 +1000 |
commit | e563bc00db29d41b868416cf5d68b2426502a3b8 (patch) | |
tree | d1e038a702520e399211e12235104f455d367c1a /nms-patches | |
parent | 22e52292387378a106e26d496d403d9a300e56bb (diff) | |
download | craftbukkit-e563bc00db29d41b868416cf5d68b2426502a3b8.tar craftbukkit-e563bc00db29d41b868416cf5d68b2426502a3b8.tar.gz craftbukkit-e563bc00db29d41b868416cf5d68b2426502a3b8.tar.lz craftbukkit-e563bc00db29d41b868416cf5d68b2426502a3b8.tar.xz craftbukkit-e563bc00db29d41b868416cf5d68b2426502a3b8.zip |
Command block names are not nullable
Diffstat (limited to 'nms-patches')
-rw-r--r-- | nms-patches/CommandBlockListenerAbstract.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/nms-patches/CommandBlockListenerAbstract.patch b/nms-patches/CommandBlockListenerAbstract.patch index 84668fcc..39842e81 100644 --- a/nms-patches/CommandBlockListenerAbstract.patch +++ b/nms-patches/CommandBlockListenerAbstract.patch @@ -35,3 +35,15 @@ } catch (Throwable throwable) { CrashReport crashreport = CrashReport.a(throwable, "Executing command block"); CrashReportSystemDetails crashreportsystemdetails = crashreport.a("Command to be executed"); +@@ -141,6 +139,11 @@ + } + + public void setName(IChatBaseComponent ichatbasecomponent) { ++ // CraftBukkit start ++ if (ichatbasecomponent == null) { ++ ichatbasecomponent = new ChatComponentText("@"); ++ } ++ // CraftBukkit end + this.h = ichatbasecomponent; + } + |