Skip to content

Commit

Permalink
fix crash with wthit 5.16
Browse files Browse the repository at this point in the history
  • Loading branch information
deirn committed May 26, 2023
1 parent 4efe751 commit 88cbb7e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/Dependencies.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ object deps {
val yarn = "net.fabricmc:yarn:1.19.2+build.8:v2"
val fabricLoader = "net.fabricmc:fabric-loader:0.14.15"

val wthit = "mcp.mobius.waila:wthit:fabric-5.13.5"
val wthit = "mcp.mobius.waila:wthit:fabric-5.16.1"

val ae2 = "appeng:appliedenergistics2-fabric:12.9.2"
val alloyForge = "maven.modrinth:jhl28YkY:2.0.19+1.19"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package lol.bai.megane.runtime.mixin;

import mcp.mobius.waila.api.IBlockComponentProvider;
import mcp.mobius.waila.api.IServerDataProvider;
import mcp.mobius.waila.api.IDataProvider;
import mcp.mobius.waila.api.TooltipPosition;
import mcp.mobius.waila.plugin.vanilla.provider.FurnaceProvider;
import mcp.mobius.waila.registry.Registrar;
Expand All @@ -21,7 +21,7 @@ private <T> void addComponent(IBlockComponentProvider provider, TooltipPosition
}

@Inject(method = "addBlockData", at = @At("HEAD"), cancellable = true)
private <T> void addBlockData(IServerDataProvider<?> provider, Class<T> clazz, CallbackInfo ci) {
private <T> void addBlockData(IDataProvider<?> provider, Class<T> clazz, int priority, CallbackInfo ci) {
if (provider instanceof FurnaceProvider) {
ci.cancel();
}
Expand Down
2 changes: 1 addition & 1 deletion module-base/runtime/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"depends" : {
"minecraft" : ">=1.19",
"wthit" : ">=5.4.3",
"wthit" : ">=5.16.1",
"megane-api" : "*"
},
"custom" : {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
"environment" : "*",
"depends" : {
"minecraft" : ">=1.19",
"wthit" : ">=5.4.3"
"wthit" : ">=5.16.1"
}
}

0 comments on commit 88cbb7e

Please sign in to comment.