feat: remove sprinting

This commit is contained in:
str1k3r committed 2026-09-26 15:14:59 -04:00
1 parent 5b198d7b31
commit bdfe5350cd
14 files changed
+18 -196

No files matched your search

-23
View File
@@ -492,19 +492,6 @@ void Entity::baseTick()
xRotO = xRot;
yRotO = yRot;
if (isSprinting() && !isInWater() && canCreateParticles())
{
int xt = Mth::floor(x);
int yt = Mth::floor(y - 0.2f - this->heightOffset);
int zt = Mth::floor(z);
int t = level->getTile(xt, yt, zt);
int d = level->getData(xt, yt, zt);
if (t > 0)
{
level->addParticle(PARTICLE_TILECRACK(t,d), x + (random->nextFloat() - 0.5) * bbWidth, bb->y0 + 0.1, z + (random->nextFloat() - 0.5) * bbWidth, -xd * 4, 1.5, -zd * 4);
}
}
if (updateInWaterState())
{
if (!wasInWater && !firstTick && canCreateParticles())
@@ -1724,16 +1711,6 @@ void Entity::setIsIdle(bool value)
setSharedFlag(FLAG_IDLEANIM, value);
}
bool Entity::isSprinting()
{
return getSharedFlag(FLAG_SPRINTING);
}
void Entity::setSprinting(bool value)
{
setSharedFlag(FLAG_SPRINTING, value);
}
bool Entity::isInvisible()
{
return getSharedFlag(FLAG_INVISIBLE);