2024-12-11 22:26:55 +01:00
|
|
|
--- a/net/minecraft/world/level/BaseCommandBlock.java
|
|
|
|
+++ b/net/minecraft/world/level/BaseCommandBlock.java
|
2024-04-30 06:15:00 +10:00
|
|
|
@@ -33,6 +33,10 @@
|
2019-04-23 12:00:00 +10:00
|
|
|
private String command = "";
|
2024-04-24 01:15:00 +10:00
|
|
|
@Nullable
|
2024-12-11 22:26:55 +01:00
|
|
|
private Component customName;
|
2018-07-15 10:00:00 +10:00
|
|
|
+ // CraftBukkit start
|
|
|
|
+ @Override
|
2024-12-11 22:26:55 +01:00
|
|
|
+ public abstract org.bukkit.command.CommandSender getBukkitSender(CommandSourceStack wrapper);
|
2018-07-15 10:00:00 +10:00
|
|
|
+ // CraftBukkit end
|
2014-11-26 08:32:16 +11:00
|
|
|
|
2024-12-11 22:26:55 +01:00
|
|
|
public BaseCommandBlock() {}
|
2024-04-24 01:15:00 +10:00
|
|
|
|
2024-04-30 06:15:00 +10:00
|
|
|
@@ -132,7 +136,7 @@
|
2020-01-06 13:44:16 +11:00
|
|
|
|
|
|
|
});
|
|
|
|
|
2022-06-08 02:00:00 +10:00
|
|
|
- minecraftserver.getCommands().performPrefixedCommand(commandlistenerwrapper, this.command);
|
2021-11-22 09:00:00 +11:00
|
|
|
+ minecraftserver.getCommands().dispatchServerCommand(commandlistenerwrapper, this.command); // CraftBukkit
|
2017-05-14 12:00:00 +10:00
|
|
|
} catch (Throwable throwable) {
|
2021-11-22 09:00:00 +11:00
|
|
|
CrashReport crashreport = CrashReport.forThrowable(throwable, "Executing command block");
|
2024-12-11 22:26:55 +01:00
|
|
|
CrashReportCategory crashreportsystemdetails = crashreport.addCategory("Command to be executed");
|