diff --git a/fabric/build.gradle.kts b/fabric/build.gradle.kts index b2c53440d..649b2440f 100644 --- a/fabric/build.gradle.kts +++ b/fabric/build.gradle.kts @@ -60,10 +60,18 @@ defaultPackageInfos { sources(api, lib, backend, main) } +// fixme temp +repositories { + maven("https://maven.ithundxr.dev/hidden") +} + dependencies { modImplementation("net.fabricmc:fabric-loader:${property("fabric_loader_version")}") modApi("net.fabricmc.fabric-api:fabric-api:${property("fabric_api_version")}") + // fixme temp + modImplementation("net.fabricmc.fabric-api:fabric-model-loading-api-v1:1.0.14+local+3af655b33f") { isTransitive = false } + modCompileOnly("maven.modrinth:sodium:${property("sodium_version")}") modCompileOnly("maven.modrinth:iris:${property("iris_version")}") diff --git a/fabric/src/main/java/dev/engine_room/flywheel/impl/FlywheelFabric.java b/fabric/src/main/java/dev/engine_room/flywheel/impl/FlywheelFabric.java index 756d37abe..4f13fa27d 100644 --- a/fabric/src/main/java/dev/engine_room/flywheel/impl/FlywheelFabric.java +++ b/fabric/src/main/java/dev/engine_room/flywheel/impl/FlywheelFabric.java @@ -1,5 +1,7 @@ package dev.engine_room.flywheel.impl; +import net.fabricmc.fabric.api.client.model.loading.v1.ModelLoadingPlugin; + import org.jetbrains.annotations.UnknownNullability; import dev.engine_room.flywheel.api.Flywheel; @@ -73,10 +75,9 @@ private static void setupLib() { EndClientResourceReloadCallback.EVENT.register((minecraft, resourceManager, initialReload, error) -> ModelHolder.onEndClientResourceReload()); - //fixme 1.21 porting -// ModelLoadingPlugin.register(ctx -> { -// ctx.addModels(PartialModelEventHandler.onRegisterAdditional()); -// }); + ModelLoadingPlugin.register(ctx -> { + ctx.addModels(PartialModelEventHandler.onRegisterAdditional()); + }); ResourceManagerHelper.get(PackType.CLIENT_RESOURCES).registerReloadListener(PartialModelEventHandler.ReloadListener.INSTANCE); }