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.patch17
1 files changed, 4 insertions, 13 deletions
diff --git a/nms-patches/CustomFunctionData.patch b/nms-patches/CustomFunctionData.patch
index d478a823..67c67470 100644
--- a/nms-patches/CustomFunctionData.patch
+++ b/nms-patches/CustomFunctionData.patch
@@ -1,6 +1,6 @@
--- a/net/minecraft/server/CustomFunctionData.java
+++ b/net/minecraft/server/CustomFunctionData.java
-@@ -32,14 +32,16 @@
+@@ -32,7 +32,7 @@
private final Map<MinecraftKey, CustomFunction> g = Maps.newHashMap();
private final ArrayDeque<CustomFunctionData.a> h = new ArrayDeque();
private boolean i;
@@ -9,25 +9,16 @@
return this.a(minecraftkey) != null;
}, this::a, "tags/functions", true, "function");
private final List<CustomFunction> k = Lists.newArrayList();
- private boolean l;
-+ private final com.mojang.brigadier.CommandDispatcher<CommandListenerWrapper> dispatcher; // CraftBukkit
-
- public CustomFunctionData(MinecraftServer minecraftserver) {
- this.f = minecraftserver;
-+ this.dispatcher = this.f.getCommandDispatcher().a(); // CraftBukkit
- }
-
- @Nullable
-@@ -60,7 +62,7 @@
+@@ -60,7 +60,7 @@
}
public com.mojang.brigadier.CommandDispatcher<CommandListenerWrapper> d() {
- return this.f.getCommandDispatcher().a();
-+ return dispatcher; // CraftBukkit
++ return this.f.vanillaCommandDispatcher.a(); // CraftBukkit
}
public void X_() {
-@@ -164,7 +166,7 @@
+@@ -164,7 +164,7 @@
arraylist.add(CompletableFuture.supplyAsync(() -> {
return a(iresourcemanager, minecraftkey);
}, Resource.a).thenApplyAsync((list) -> {