From da48f2cbd402356b9bca5eb8386acdcf25e9bf84 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sun, 1 May 2016 20:38:40 +0100 Subject: [PATCH] SPIGOT-2134: Use the correct listener in CommandExecute By: Thinkofname --- paper-server/nms-patches/CommandExecute.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/nms-patches/CommandExecute.patch b/paper-server/nms-patches/CommandExecute.patch index ee780904cd..42b16464cd 100644 --- a/paper-server/nms-patches/CommandExecute.patch +++ b/paper-server/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) {