i currently have this:
@Mixin(ClientPlayerEntity.class)
public abstract class ExampleClientMixin {
@Shadow private boolean lastSprinting;
@Shadow @Final protected MinecraftClient client;
@Inject(at = @At("TAIL"), method = "tick")
private void init(CallbackInfo info) {
GameOptions options = this.client.options;
if (!this.lastSprinting && options.forwardKey.isPressed() && options.attackKey.isPressed()) {
this.setSprinting(true);
}
}
}
i was looking at an autosprint mod and in that mod they used setSprinting, but that doesnt exist for me for some reason, i dont know why