From ed60c01794282696e4cf1ae0d7c51cb49306bd55 Mon Sep 17 00:00:00 2001 From: Thinkofname Date: Sun, 1 May 2016 20:38:40 +0100 Subject: SPIGOT-2134: Use the correct listener in CommandExecute --- nms-patches/CommandExecute.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nms-patches') 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) { -- cgit v1.2.3