summaryrefslogtreecommitdiffstats
path: root/nms-patches/CustomFunction.patch
blob: 28838ae834502d9fb9a4f047dde708de7c38dce7 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/net/minecraft/server/CustomFunction.java
+++ b/net/minecraft/server/CustomFunction.java
@@ -122,7 +122,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() {