Updated to 1.18.2

This commit is contained in:
MineGame159 2022-03-09 16:02:54 +01:00
parent e475650d90
commit 2bdcbc3be4
5 changed files with 13 additions and 14 deletions

View File

@ -32,7 +32,7 @@ dependencies {
processResources {
filesMatching("fabric.mod.json") {
expand "version": project.version
expand "version": project.version, "mc_version": project.minecraft_version
}
}

View File

@ -1,8 +1,8 @@
org.gradle.jvmargs=-Xmx2G
# Fabric (https://fabricmc.net/versions.html)
minecraft_version=1.18.1
yarn_mappings=1.18.1+build.14
minecraft_version=1.18.2
yarn_mappings=1.18.2+build.1
loader_version=0.12.12
# Mod Properties

View File

@ -7,16 +7,16 @@ import dummy.addon.template.modules.hud.HudExample;
import meteordevelopment.meteorclient.MeteorClient;
import meteordevelopment.meteorclient.addons.MeteorAddon;
import meteordevelopment.meteorclient.systems.commands.Commands;
import meteordevelopment.meteorclient.systems.hud.HUD;
import meteordevelopment.meteorclient.systems.modules.Category;
import meteordevelopment.meteorclient.systems.modules.Modules;
import meteordevelopment.meteorclient.systems.modules.render.hud.HUD;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.lang.invoke.MethodHandles;
public class TemplateAddon extends MeteorAddon {
public static final Logger LOG = LogManager.getLogger();
public static final Logger LOG = LoggerFactory.getLogger(TemplateAddon.class);
public static final Category CATEGORY = new Category("Example");
@Override
@ -34,8 +34,7 @@ public class TemplateAddon extends MeteorAddon {
Commands.get().add(new ExampleCommand());
// HUD
HUD hud = Modules.get().get(HUD.class);
hud.elements.add(new HudExample(hud));
HUD.get().elements.add(new HudExample());
}
@Override

View File

@ -1,11 +1,11 @@
package dummy.addon.template.modules.hud;
import meteordevelopment.meteorclient.systems.modules.render.hud.HUD;
import meteordevelopment.meteorclient.systems.modules.render.hud.modules.DoubleTextHudElement;
import meteordevelopment.meteorclient.systems.hud.HUD;
import meteordevelopment.meteorclient.systems.hud.modules.DoubleTextHudElement;
public class HudExample extends DoubleTextHudElement {
public HudExample(HUD hud) {
super(hud, "hud-example", "Description", "Static left text: ", false);
public HudExample() {
super(HUD.get(), "hud-example", "Description", "Static left text: ", false);
}
@Override

View File

@ -25,7 +25,7 @@
},
"depends": {
"java": ">=17",
"minecraft": ">=1.18",
"minecraft": ">=${mc_version}",
"meteor-client": "*"
}
}