SPIGOT-2771: Safely execute command block commands

Dieser Commit ist enthalten in:
md_5 2016-11-18 08:54:22 +11:00
Ursprung 0dedba43d1
Commit 129efc132a

Datei anzeigen

@ -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");