Skip to content

Commit

Permalink
finish the wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Jun 6, 2024
1 parent ea4f05f commit e281177
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
8 changes: 8 additions & 0 deletions fabric/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")}")

Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit e281177

Please sign in to comment.