SPIGOT-2134: Use the correct listener in CommandExecute

This commit is contained in:
Thinkofname 2016-05-01 20:38:40 +01:00
parent 935f18b476
commit ed60c01794

View File

@ -41,7 +41,7 @@
+ } else if (listener instanceof CommandBlockListenerAbstract) {
+ sender = ((CommandBlockListenerAbstract) listener).sender;
+ } else if (listener instanceof ProxyListener) {
+ listener = ((ProxyListener) icommandlistener).base; // Search deeper
+ listener = ((ProxyListener) listener).base; // Search deeper
+ } else if (VanillaCommandWrapper.lastSender != null) {
+ sender = VanillaCommandWrapper.lastSender;
+ } else if (listener.f() != null) {