diff --git a/paper-server/nms-patches/CommandBlockListenerAbstract.patch b/paper-server/nms-patches/CommandBlockListenerAbstract.patch index 6c024518b2..b04ba4f70a 100644 --- a/paper-server/nms-patches/CommandBlockListenerAbstract.patch +++ b/paper-server/nms-patches/CommandBlockListenerAbstract.patch @@ -19,19 +19,12 @@ public CommandBlockListenerAbstract() { this.customName = CommandBlockListenerAbstract.c; -@@ -105,14 +110,7 @@ - if (minecraftserver != null && minecraftserver.J() && minecraftserver.getEnableCommandBlock() && !UtilColor.b(this.command)) { - try { - this.lastOutput = null; -- CommandListenerWrapper commandlistenerwrapper = this.getWrapper().a((commandcontext, flag, i) -> { -- if (flag) { -- ++this.successCount; -- } -- -- }); -- +@@ -112,7 +117,7 @@ + + }); + - minecraftserver.getCommandDispatcher().a(commandlistenerwrapper, this.command); -+ this.successCount = minecraftserver.getCommandDispatcher().dispatchServerCommand(this.getWrapper(), this.command); // CraftBukkit ++ minecraftserver.getCommandDispatcher().dispatchServerCommand(commandlistenerwrapper, this.command); // CraftBukkit } catch (Throwable throwable) { CrashReport crashreport = CrashReport.a(throwable, "Executing command block"); CrashReportSystemDetails crashreportsystemdetails = crashreport.a("Command to be executed");