mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-09 16:42:03 -07:00
Command block names are not nullable
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user