mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-03 05:26:50 +01:00
Command block names are not nullable
This commit is contained in:
parent
22e5229238
commit
e563bc00db
1 changed files with 12 additions and 0 deletions
|
@ -35,3 +35,15 @@
|
||||||
} catch (Throwable throwable) {
|
} catch (Throwable throwable) {
|
||||||
CrashReport crashreport = CrashReport.a(throwable, "Executing command block");
|
CrashReport crashreport = CrashReport.a(throwable, "Executing command block");
|
||||||
CrashReportSystemDetails crashreportsystemdetails = crashreport.a("Command to be executed");
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue