resent-1.8/src/main/java/dev/resent/module/impl/movement/AutoWalk.java

18 lines
501 B
Java
Raw Normal View History

2022-12-27 12:54:38 -08:00
package dev.resent.module.impl.movement;
import dev.resent.Resent;
import dev.resent.event.impl.EventUpdate;
import dev.resent.module.base.Category;
import dev.resent.module.base.Mod;
public class AutoWalk extends Mod {
public AutoWalk(){
super("AutoWalk", Category.MOVEMENT);
Resent.INSTANCE.events().subscribe(EventUpdate.class, event -> {
if (this.isEnabled()) {
mc.gameSettings.keyBindForward.pressed = true;
}
});
}
}