2017-05-14 04:00:00 +02:00
|
|
|
--- a/net/minecraft/server/CustomFunctionData.java
|
|
|
|
+++ b/net/minecraft/server/CustomFunctionData.java
|
2018-07-21 03:20:38 +02:00
|
|
|
@@ -32,7 +32,7 @@
|
2018-07-15 02:00:00 +02:00
|
|
|
private final Map<MinecraftKey, CustomFunction> g = Maps.newHashMap();
|
|
|
|
private final ArrayDeque<CustomFunctionData.a> h = new ArrayDeque();
|
|
|
|
private boolean i;
|
|
|
|
- private final Tags<CustomFunction> j = new Tags((minecraftkey) -> {
|
|
|
|
+ private final Tags<CustomFunction> j = new Tags<>((minecraftkey) -> { // CraftBukkit - decompile error
|
|
|
|
return this.a(minecraftkey) != null;
|
|
|
|
}, this::a, "tags/functions", true, "function");
|
|
|
|
private final List<CustomFunction> k = Lists.newArrayList();
|
2018-07-21 03:20:38 +02:00
|
|
|
@@ -60,7 +60,7 @@
|
2017-05-14 04:00:00 +02:00
|
|
|
}
|
|
|
|
|
2018-07-15 02:00:00 +02:00
|
|
|
public com.mojang.brigadier.CommandDispatcher<CommandListenerWrapper> d() {
|
|
|
|
- return this.f.getCommandDispatcher().a();
|
2018-07-21 03:20:38 +02:00
|
|
|
+ return this.f.vanillaCommandDispatcher.a(); // CraftBukkit
|
2017-05-14 04:00:00 +02:00
|
|
|
}
|
|
|
|
|
2018-07-15 02:00:00 +02:00
|
|
|
public void X_() {
|
2018-07-21 03:20:38 +02:00
|
|
|
@@ -164,7 +164,7 @@
|
2018-07-15 02:00:00 +02:00
|
|
|
arraylist.add(CompletableFuture.supplyAsync(() -> {
|
|
|
|
return a(iresourcemanager, minecraftkey);
|
|
|
|
}, Resource.a).thenApplyAsync((list) -> {
|
|
|
|
- return CustomFunction.a(minecraftkey, this, list);
|
|
|
|
+ return CustomFunction.a(minecraftkey1, this, list); // CraftBukkit - decompile error
|
|
|
|
}).handle((customfunction, throwable) -> {
|
|
|
|
return this.a(customfunction, throwable, minecraftkey);
|
|
|
|
}));
|