forked from cafeberry/cafeberry
added some kbm stuff
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user