added some kbm stuff

This commit is contained in:
qloak committed 2026-09-13 18:02:29 -07:00
1 parent 82e802873f
commit 42fd7414e4
218 files changed
+3758 -258

No files matched your search

+7 -1
View File
@@ -282,7 +282,13 @@ void LocalPlayer::aiStep()
// 4J - altered this slightly to make sure that the joypad returns to below returnTreshold in between registering two movements up to runThreshold
if (onGround && !isSprinting() && enoughFoodToSprint && !isUsingItem() && !hasEffect(MobEffect::blindness))
{
if( !wasRunning && input->ya >= runTreshold )
if (input->sprinting && input->ya >= runTreshold)
{
setSprinting(true);
sprintTriggerTime = 0;
sprintTriggerRegisteredReturn = false;
}
else if( !wasRunning && input->ya >= runTreshold )
{
if (sprintTriggerTime == 0)
{