Skip to content

Commit

Permalink
Fix LootManagerMixin injection failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Su5eD committed Dec 29, 2023
1 parent b00938e commit 9ad825c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private static void load(LootDataType type, ResourceManager resourceManager, Exe
}

// runAsync Runnable in load method
@Inject(method = "method_51189", at = @At("HEAD"))
@Inject(method = {"method_51189", "m_278660_"}, at = @At("HEAD"), require = 1)
private static void runAsync(ResourceManager resourceManager, LootDataType lootDataType, Map map, CallbackInfo ci) {
assert ResourceConditionsImpl.CURRENT_REGISTRIES.get() == null;
ResourceConditionsImpl.CURRENT_REGISTRIES.set(Objects.requireNonNull(dynamicRegistryManagerMap.remove(map)));
Expand Down Expand Up @@ -88,7 +88,7 @@ private static void applyResourceConditions(LootDataType lootDataType, ResourceM
}

// runAsync Runnable in load method
@Inject(method = "method_51189", at = @At("RETURN"))
@Inject(method = {"method_51189", "m_278660_"}, at = @At("RETURN"), require = 1)
private static void runAsyncEnd(ResourceManager resourceManager, LootDataType lootDataType, Map map, CallbackInfo ci) {
ResourceConditionsImpl.CURRENT_REGISTRIES.remove();
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,5 @@ fabric-client-tags-api-v1-version=1.1.1
loom.platform=forge
forge_version=1.20.1-47.2.6
pack_format=15
forgified_version=1.10.3
forgified_version=1.10.4
forge_fabric_loader_version=2.6.0+0.15.0+1.20.1

0 comments on commit 9ad825c

Please sign in to comment.