craftbukkit/nms-patches/CommandBlockListenerAbstract.patch

23 lines
1.1 KiB
Diff
Raw Normal View History

2015-05-25 20:37:24 +10:00
--- a/net/minecraft/server/CommandBlockListenerAbstract.java
+++ b/net/minecraft/server/CommandBlockListenerAbstract.java
2021-03-09 08:47:33 +11:00
@@ -17,6 +17,10 @@
2019-04-23 12:00:00 +10:00
private IChatBaseComponent lastOutput;
private String command = "";
2019-12-11 09:00:00 +11:00
private IChatBaseComponent customName;
2018-07-15 10:00:00 +10:00
+ // CraftBukkit start
+ @Override
2021-03-09 08:47:33 +11:00
+ public abstract org.bukkit.command.CommandSender getBukkitSender(CommandListenerWrapper wrapper);
2018-07-15 10:00:00 +10:00
+ // CraftBukkit end
2019-12-11 09:00:00 +11:00
public CommandBlockListenerAbstract() {
this.customName = CommandBlockListenerAbstract.c;
2021-03-09 08:47:33 +11:00
@@ -113,7 +117,7 @@
});
2019-04-23 12:00:00 +10:00
- minecraftserver.getCommandDispatcher().a(commandlistenerwrapper, this.command);
+ minecraftserver.getCommandDispatcher().dispatchServerCommand(commandlistenerwrapper, this.command); // CraftBukkit
2017-05-14 12:00:00 +10:00
} catch (Throwable throwable) {
CrashReport crashreport = CrashReport.a(throwable, "Executing command block");
CrashReportSystemDetails crashreportsystemdetails = crashreport.a("Command to be executed");