A liitle bit refactor
This commit is contained in:
parent
bc07b34f1c
commit
265cc1a666
2 changed files with 3 additions and 4 deletions
|
@ -30,8 +30,6 @@ public class TagLoaderMixin {
|
|||
@ModifyArg(method = "prepare", at = @At(value = "INVOKE",
|
||||
target = "Ljava/util/concurrent/CompletableFuture;supplyAsync(Ljava/util/function/Supplier;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;"))
|
||||
public Supplier<Map<ResourceLocation, Tag.Builder>> be_modifyTags(Supplier<Map<ResourceLocation, Tag.Builder>> supplier, Executor executor) {
|
||||
Map<ResourceLocation, Tag.Builder> map = supplier.get();
|
||||
TagHelper.apply(name, map);
|
||||
return () -> map;
|
||||
return () -> TagHelper.apply(name, supplier.get());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue