From a479029a85221fa6ce31742aee1abbcc1f998289 Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 26 May 2017 16:43:56 +1000 Subject: Ensure gameLoop function gets selectors applied. --- nms-patches/CustomFunction.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 nms-patches/CustomFunction.patch (limited to 'nms-patches/CustomFunction.patch') diff --git a/nms-patches/CustomFunction.patch b/nms-patches/CustomFunction.patch new file mode 100644 index 00000000..b0429ae1 --- /dev/null +++ b/nms-patches/CustomFunction.patch @@ -0,0 +1,11 @@ +--- a/net/minecraft/server/CustomFunction.java ++++ b/net/minecraft/server/CustomFunction.java +@@ -130,7 +130,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 + } + + public String toString() { -- cgit v1.2.3