diff options
Diffstat (limited to 'nms-patches/CommandExecute.patch')
-rw-r--r-- | nms-patches/CommandExecute.patch | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nms-patches/CommandExecute.patch b/nms-patches/CommandExecute.patch index 8fbfb2ea..bd31145b 100644 --- a/nms-patches/CommandExecute.patch +++ b/nms-patches/CommandExecute.patch @@ -11,7 +11,7 @@ public class CommandExecute extends CommandAbstract { -@@ -59,26 +63,59 @@ +@@ -59,26 +63,61 @@ } String s = a(astring, b0); @@ -31,6 +31,8 @@ + sender = minecraftserver.remoteConsole; + } else if (listener instanceof CommandBlockListenerAbstract) { + sender = ((CommandBlockListenerAbstract) listener).sender; ++ } else if (listener instanceof CustomFunctionData.CustomFunctionListener) { ++ sender = ((CustomFunctionData.CustomFunctionListener) listener).sender; + } else if (listener instanceof CommandListenerWrapper) { + listener = ((CommandListenerWrapper) listener).base; // Search deeper + } else if (VanillaCommandWrapper.lastSender != null) { |