Skip to content

Commit

Permalink
Fixed datapack registry crash bug
Browse files Browse the repository at this point in the history
  • Loading branch information
LatvianModder committed Aug 15, 2024
1 parent eb8b397 commit 99656c1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ protected Object internalJsToJavaLast(Object from, TypeInfo target) {
return k;
}

var registry = lookupRegistry(target.param(0), from);
var registryType = lookupRegistryType(target.param(0), from);
var id = ID.mc(from);

return ResourceKey.create(registry.key(), id);
return ResourceKey.create(registryType.key(), id);
} else if (c == Holder.class) {
return HolderWrapper.wrap(this, from, target.param(0));
} else if (c == HolderSet.class) {
Expand Down

0 comments on commit 99656c1

Please sign in to comment.