Skip to content

Commit

Permalink
Update to 1.19.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Technici4n committed Sep 5, 2022
1 parent 40da1f9 commit aaa6558
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
12 changes: 6 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
minecraft_version=1.19
forge_version=41.1.0
ae2_version=12.0.1-alpha
mekanism_version=10.3.0.467
jei_version=11.1.1.239
jade_id=3865918
minecraft_version=1.19.2
forge_version=43.1.16
ae2_version=12.2.0-beta
mekanism_version=10.3.3.470
jei_version=11.3.0.260
jade_id=3960379

org.gradle.daemon=false

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
package me.ramidzkh.mekae2.integration.jade;

import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.level.block.Block;

import mcp.mobius.waila.api.IWailaClientRegistration;
import mcp.mobius.waila.api.IWailaPlugin;
import mcp.mobius.waila.api.TooltipPosition;
import mcp.mobius.waila.api.WailaPlugin;
import snownee.jade.api.IWailaClientRegistration;
import snownee.jade.api.IWailaPlugin;
import snownee.jade.api.WailaPlugin;

/**
* Plugin to remove the mekanism-added chemical handler lines for interfaces and pattern providers.
Expand All @@ -22,9 +20,9 @@ public class AMJadePlugin implements IWailaPlugin {

@Override
public void registerClient(IWailaClientRegistration registration) {
// Run in TAIL to be able to remove Mekanism's chemical tooltips
registration.registerComponentProvider((tooltip, blockAccessor, pluginConfig) -> {
registration.addTooltipCollectedCallback((tooltip, accessor) -> {
// This is ugly, but nothing else worked perfectly due to Jade using old server data for new blocks.
// TODO: check if this is still needed in 1.19+
for (var loc : CHEMICALS) {
if (tooltip.get(loc).size() != 9) {
return;
Expand All @@ -35,6 +33,6 @@ public void registerClient(IWailaClientRegistration registration) {
for (var loc : CHEMICALS) {
tooltip.remove(loc);
}
}, TooltipPosition.TAIL, Block.class); // We must use Block.class because of the desyncs mentioned above.
});
}
}
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ updateJSONURL = "https://api.modrinth.com/updates/applied-mekanistics/forge_upda
[[dependencies.appmek]]
modId = "forge"
mandatory = true
versionRange = "[41.0.0,42.0.0)"
versionRange = "[43.0.0,44.0.0)"
ordering = "NONE"
side = "BOTH"

Expand Down

0 comments on commit aaa6558

Please sign in to comment.