diff options
Diffstat (limited to 'patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/BaseCommandBlock.java.patch')
-rw-r--r-- | patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/BaseCommandBlock.java.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/BaseCommandBlock.java.patch b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/BaseCommandBlock.java.patch new file mode 100644 index 0000000000..c3f913c304 --- /dev/null +++ b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/BaseCommandBlock.java.patch @@ -0,0 +1,22 @@ +--- a/net/minecraft/world/level/BaseCommandBlock.java ++++ b/net/minecraft/world/level/BaseCommandBlock.java +@@ -30,6 +30,10 @@ + private Component lastOutput; + private String command = ""; + private Component name; ++ // CraftBukkit start ++ @Override ++ public abstract org.bukkit.command.CommandSender getBukkitSender(CommandSourceStack wrapper); ++ // CraftBukkit end + + public BaseCommandBlock() { + this.name = BaseCommandBlock.DEFAULT_NAME; +@@ -126,7 +130,7 @@ + + }); + +- minecraftserver.getCommands().performPrefixedCommand(commandsourcestack, this.command); ++ minecraftserver.getCommands().dispatchServerCommand(commandlistenerwrapper, this.command); // CraftBukkit + } catch (Throwable throwable) { + CrashReport crashreport = CrashReport.forThrowable(throwable, "Executing command block"); + CrashReportCategory crashreportcategory = crashreport.addCategory("Command to be executed"); |