summaryrefslogtreecommitdiffstats
path: root/nms-patches/CustomFunctionData.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/CustomFunctionData.patch')
-rw-r--r--nms-patches/CustomFunctionData.patch22
1 files changed, 19 insertions, 3 deletions
diff --git a/nms-patches/CustomFunctionData.patch b/nms-patches/CustomFunctionData.patch
index f0baac84..821ff006 100644
--- a/nms-patches/CustomFunctionData.patch
+++ b/nms-patches/CustomFunctionData.patch
@@ -1,6 +1,22 @@
--- a/net/minecraft/server/CustomFunctionData.java
+++ b/net/minecraft/server/CustomFunctionData.java
-@@ -33,7 +33,7 @@
+@@ -23,7 +23,14 @@
+ private CustomFunction f;
+ private final ArrayDeque<CustomFunctionData.a> g = new ArrayDeque();
+ private boolean h = false;
+- private final ICommandListener i = new ICommandListener() {
++ // CraftBukkit start
++ private final ICommandListener i = new CustomFunctionListener();
++
++ public class CustomFunctionListener implements ICommandListener {
++
++ protected org.bukkit.command.CommandSender sender = new org.bukkit.craftbukkit.command.CraftFunctionCommandSender(this);
++ // CraftBukkit end
++
+ public String getName() {
+ return CustomFunctionData.this.e;
+ }
+@@ -33,7 +40,7 @@
}
public World getWorld() {
@@ -9,7 +25,7 @@
}
public MinecraftServer C_() {
-@@ -57,7 +57,7 @@
+@@ -57,7 +64,7 @@
}
public int c() {
@@ -18,7 +34,7 @@
}
public Map<MinecraftKey, CustomFunction> d() {
-@@ -65,7 +65,7 @@
+@@ -65,7 +72,7 @@
}
public void e() {