summaryrefslogtreecommitdiffstats
path: root/nms-patches
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2017-05-26 16:43:56 +1000
committermd_5 <git@md-5.net>2017-05-26 16:43:56 +1000
commita479029a85221fa6ce31742aee1abbcc1f998289 (patch)
treee0fbeb22225ab1d024c60283f5160dab0815bc71 /nms-patches
parentc7920f4302bce2042aa9c5d1d121e488cb88f7f0 (diff)
downloadcraftbukkit-a479029a85221fa6ce31742aee1abbcc1f998289.tar
craftbukkit-a479029a85221fa6ce31742aee1abbcc1f998289.tar.gz
craftbukkit-a479029a85221fa6ce31742aee1abbcc1f998289.tar.lz
craftbukkit-a479029a85221fa6ce31742aee1abbcc1f998289.tar.xz
craftbukkit-a479029a85221fa6ce31742aee1abbcc1f998289.zip
Ensure gameLoop function gets selectors applied.
Diffstat (limited to 'nms-patches')
-rw-r--r--nms-patches/CustomFunction.patch11
1 files changed, 11 insertions, 0 deletions
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<CustomFunctionData.a> 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() {