SPIGOT-2771: Safely execute command block commands

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2016-11-18 08:54:22 +11:00
parent 1150126304
commit 3d88bfd277

View file

@ -28,7 +28,7 @@
this.d = null;
- this.b = icommandhandler.a(this, this.e);
+ // 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
} catch (Throwable throwable) {
CrashReport crashreport = CrashReport.a(throwable, "Executing command block");