summaryrefslogtreecommitdiffstats
path: root/nms-patches
diff options
context:
space:
mode:
authorThinkofname <thinkofdeath@spigotmc.org>2016-05-01 20:38:40 +0100
committerThinkofname <thinkofdeath@spigotmc.org>2016-05-01 20:38:40 +0100
commited60c01794282696e4cf1ae0d7c51cb49306bd55 (patch)
tree3a34af844b711df8c3313cd2583e9c719835c255 /nms-patches
parent935f18b476b31523b8f01560ada487ec1bea6b3c (diff)
downloadcraftbukkit-ed60c01794282696e4cf1ae0d7c51cb49306bd55.tar
craftbukkit-ed60c01794282696e4cf1ae0d7c51cb49306bd55.tar.gz
craftbukkit-ed60c01794282696e4cf1ae0d7c51cb49306bd55.tar.lz
craftbukkit-ed60c01794282696e4cf1ae0d7c51cb49306bd55.tar.xz
craftbukkit-ed60c01794282696e4cf1ae0d7c51cb49306bd55.zip
SPIGOT-2134: Use the correct listener in CommandExecute
Diffstat (limited to 'nms-patches')
-rw-r--r--nms-patches/CommandExecute.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/nms-patches/CommandExecute.patch b/nms-patches/CommandExecute.patch
index ee780904..42b16464 100644
--- a/nms-patches/CommandExecute.patch
+++ b/nms-patches/CommandExecute.patch
@@ -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) {