Skip to content

Commit

Permalink
fix crash with wthit 6.4
Browse files Browse the repository at this point in the history
  • Loading branch information
deirn committed May 26, 2023
1 parent 6fadb73 commit 73ee3c9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 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.3+build.5:v2"
val fabricLoader = "net.fabricmc:fabric-loader:0.14.18"

val wthit = "mcp.mobius.waila:wthit:fabric-6.3.1"
val wthit = "mcp.mobius.waila:wthit:fabric-6.4.1"

val ae2 = "appeng:appliedenergistics2-fabric:13.0.6-beta"
val alloyForge = "maven.modrinth:jhl28YkY:2.0.19+1.19.3"
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
4 changes: 2 additions & 2 deletions module-base/runtime/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"megane-runtime.mixins.json"
],
"depends" : {
"minecraft" : ">=1.19",
"wthit" : ">=5.4.3",
"minecraft" : "1.19.3",
"wthit" : ">=6.4.1",
"megane-api" : "*"
},
"custom" : {
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"icon" : "assets/megane/icon.png",
"environment" : "*",
"depends" : {
"minecraft" : ">=1.19",
"wthit" : ">=5.4.3"
"minecraft" : "1.19.3",
"wthit" : ">=6.4.1"
}
}

0 comments on commit 73ee3c9

Please sign in to comment.