SPIGOT-3373: Fix /execute in gameloop functions
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user