mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
SPIGOT-2134: Use the correct listener in CommandExecute
By: Thinkofname <thinkofdeath@spigotmc.org>
This commit is contained in:
parent
6ada881202
commit
da48f2cbd4
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue