From 258575110f7c0abc0e3c8b85254b22b28fca27b1 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 25 Jun 2017 09:46:19 +1000 Subject: SPIGOT-3373: Fix /execute in gameloop functions --- nms-patches/CustomFunction.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nms-patches/CustomFunction.patch') diff --git a/nms-patches/CustomFunction.patch b/nms-patches/CustomFunction.patch index 28838ae8..ea37c185 100644 --- a/nms-patches/CustomFunction.patch +++ b/nms-patches/CustomFunction.patch @@ -5,7 +5,7 @@ public void a(CustomFunctionData customfunctiondata, ICommandListener icommandlistener, ArrayDeque arraydeque, int i) { - customfunctiondata.a().a(icommandlistener, this.a); -+ CommandBlockListenerAbstract.executeSafely(icommandlistener, new org.bukkit.craftbukkit.command.CraftFunctionCommandSender(icommandlistener), this.a); // CraftBukkit ++ CommandBlockListenerAbstract.executeSafely(icommandlistener, ((CustomFunctionData.CustomFunctionListener) icommandlistener).sender, this.a); // CraftBukkit } public String toString() { -- cgit v1.2.3