PaperMC/paper-server/nms-patches/CommandBlockListenerAbstract.patch
CraftBukkit/Spigot b2efd58164 Organise imports
By: md_5 <git@md-5.net>
2021-03-09 08:47:33 +11:00

22 lines
1.1 KiB
Diff

--- a/net/minecraft/server/CommandBlockListenerAbstract.java
+++ b/net/minecraft/server/CommandBlockListenerAbstract.java
@@ -17,6 +17,10 @@
private IChatBaseComponent lastOutput;
private String command = "";
private IChatBaseComponent customName;
+ // CraftBukkit start
+ @Override
+ public abstract org.bukkit.command.CommandSender getBukkitSender(CommandListenerWrapper wrapper);
+ // CraftBukkit end
public CommandBlockListenerAbstract() {
this.customName = CommandBlockListenerAbstract.c;
@@ -113,7 +117,7 @@
});
- minecraftserver.getCommandDispatcher().a(commandlistenerwrapper, this.command);
+ 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");