Skip to content

Commit

Permalink
修正一处会导致模型加载失效的错误
Browse files Browse the repository at this point in the history
  • Loading branch information
TartaricAcid committed Sep 16, 2024
1 parent e38479d commit c953dff
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public void addTest(String name) {
if (!isValidResourceLocation(id)) {
return;
}
ResourceLocation res = ResourceLocation.withDefaultNamespace(id);
ResourceLocation res = ResourceLocation.parse(id);
if (idTest.containsKey(type)) {
idTest.get(type).add(res);
} else {
Expand All @@ -59,7 +59,7 @@ public void addTest(String name) {
}
TagKey<Item> tagKey = TagKey.create(
Registries.ITEM,
ResourceLocation.withDefaultNamespace(id)
ResourceLocation.parse(id)
);
if (tagTest.containsKey(type)) {
tagTest.get(type).add(tagKey);
Expand Down

0 comments on commit c953dff

Please sign in to comment.