Skip to content

Commit

Permalink
修复一个方法(不保证能用)
Browse files Browse the repository at this point in the history
  • Loading branch information
CSneko committed Oct 2, 2024
1 parent b0af7c4 commit 7619824
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.resources.ResourceLocation;
import org.ayamemc.ayame.client.resource.AyameModelResource;
import org.ayamemc.ayame.client.resource.IModelResource;
import org.ayamemc.ayame.model.AyameModelType;
import org.ayamemc.ayame.model.DefaultAyameModelType;
Expand Down Expand Up @@ -77,6 +78,7 @@ private static IModelResource createModelResource(String name) {
}

private static AyameModelType createModel(IModelResource res) {
return IModelResource.createModelFromResource(res);
AyameModelResource.ModelDataResource defaultModel = res.getDefault();
return defaultModel.getOrCreateResource(res.getMetaData());
}
}

0 comments on commit 7619824

Please sign in to comment.