Port autogg

This commit is contained in:
ThisIsALegitUsername 2023-02-02 16:33:29 +00:00
parent 30cce3bdf4
commit d8c1ae3884
2 changed files with 4 additions and 7 deletions

View File

@ -8,9 +8,7 @@ import dev.resent.module.setting.BooleanSetting;
@Module(name = "AutoGG", category = Category.MISC, hasSetting = true) @Module(name = "AutoGG", category = Category.MISC, hasSetting = true)
public class AutoGG extends Mod { public class AutoGG extends Mod {
public AutoGG() { public AutoGG() { addSetting(rep, onLose, onWin); }
addSetting(rep, onLose, onWin);
}
public static BooleanSetting rep = new BooleanSetting("Repetition bypass", "", true); public static BooleanSetting rep = new BooleanSetting("Repetition bypass", "", true);
public static BooleanSetting onLose = new BooleanSetting("On Lose", "", true); public static BooleanSetting onLose = new BooleanSetting("On Lose", "", true);

View File

@ -1,14 +1,12 @@
package dev.resent.module.impl.misc; package dev.resent.module.impl.misc;
import dev.resent.annotation.Module;
import dev.resent.module.base.Category; import dev.resent.module.base.Category;
import dev.resent.module.base.Mod; import dev.resent.module.base.Mod;
@Module(name = "AutoRespawn", category = Category.MISC)
public class AutoRespawn extends Mod { public class AutoRespawn extends Mod {
public AutoRespawn() {
super("AutoRespawn", Category.MISC);
}
public void onTick() { public void onTick() {
if (this.isEnabled()) { if (this.isEnabled()) {
if (mc.thePlayer.isDead) { if (mc.thePlayer.isDead) {
@ -16,4 +14,5 @@ public class AutoRespawn extends Mod {
} }
} }
} }
} }