From e563bc00db29d41b868416cf5d68b2426502a3b8 Mon Sep 17 00:00:00 2001
From: md_5 <git@md-5.net>
Date: Mon, 16 Jul 2018 16:20:46 +1000
Subject: [PATCH] Command block names are not nullable

---
 nms-patches/CommandBlockListenerAbstract.patch | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/nms-patches/CommandBlockListenerAbstract.patch b/nms-patches/CommandBlockListenerAbstract.patch
index 84668fcc33..39842e8109 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;
+     }
+