mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-18 03:16:37 +01:00
SPIGOT-2771: Safely execute command block commands
This commit is contained in:
parent
0dedba43d1
commit
129efc132a
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@
|
||||||
this.d = null;
|
this.d = null;
|
||||||
- this.b = icommandhandler.a(this, this.e);
|
- this.b = icommandhandler.a(this, this.e);
|
||||||
+ // CraftBukkit start - Handle command block commands using Bukkit dispatcher
|
+ // CraftBukkit start - Handle command block commands using Bukkit dispatcher
|
||||||
+ this.b = executeCommand(this, sender, this.e);
|
+ this.b = executeSafely(this, sender, this.e);
|
||||||
+ // CraftBukkit end
|
+ // CraftBukkit end
|
||||||
} catch (Throwable throwable) {
|
} catch (Throwable throwable) {
|
||||||
CrashReport crashreport = CrashReport.a(throwable, "Executing command block");
|
CrashReport crashreport = CrashReport.a(throwable, "Executing command block");
|
||||||
|
|
Loading…
Add table
Reference in a new issue