Paper/nms-patches/TagRegistry.patch

25 lines
1.5 KiB
Diff
Raw Normal View History

--- a/net/minecraft/server/TagRegistry.java
+++ b/net/minecraft/server/TagRegistry.java
2019-06-21 12:00:00 +02:00
@@ -58,7 +58,7 @@
2019-07-20 01:00:00 +02:00
CompletableFuture<Map<MinecraftKey, Tag.a<Item>>> completablefuture1 = this.itemTags.a(iresourcemanager, executor);
CompletableFuture<Map<MinecraftKey, Tag.a<FluidType>>> completablefuture2 = this.fluidTags.a(iresourcemanager, executor);
CompletableFuture<Map<MinecraftKey, Tag.a<EntityTypes<?>>>> completablefuture3 = this.entityTags.a(iresourcemanager, executor);
2019-04-23 04:00:00 +02:00
- CompletableFuture completablefuture4 = completablefuture.thenCombine(completablefuture1, Pair::of).thenCombine(completablefuture2.thenCombine(completablefuture3, Pair::of), (pair, pair1) -> {
+ CompletableFuture<TagRegistry.a> completablefuture4 = completablefuture.thenCombine(completablefuture1, Pair::of).thenCombine(completablefuture2.thenCombine(completablefuture3, Pair::of), (pair, pair1) -> { // CraftBukkit - decompile error
return new TagRegistry.a((Map) pair.getFirst(), (Map) pair.getSecond(), (Map) pair1.getFirst(), (Map) pair1.getSecond());
});
2019-06-21 12:00:00 +02:00
@@ -72,6 +72,12 @@
2019-07-20 01:00:00 +02:00
TagsItem.a((Tags) this.itemTags);
TagsFluid.a((Tags) this.fluidTags);
TagsEntity.a((Tags) this.entityTags);
2019-04-23 04:00:00 +02:00
+ // CraftBukkit start
2019-07-20 01:00:00 +02:00
+ this.blockTags.version++;
+ this.itemTags.version++;
+ this.fluidTags.version++;
+ this.entityTags.version++;
2019-04-23 04:00:00 +02:00
+ // CraftBukkit end
}, executor1);
}