feat: remove sprinting
This commit is contained in:
1 parent
5b198d7b31
commit
bdfe5350cd
14 files changed
+18
-196
No files matched your search
@@ -25,7 +25,6 @@ MultiplayerLocalPlayer::MultiplayerLocalPlayer(Minecraft *minecraft, Level *leve
|
||||
lastOnGround = false;
|
||||
lastSneaked = false;
|
||||
lastIdle = false;
|
||||
lastSprinting = false;
|
||||
positionReminder = 0;
|
||||
|
||||
this->connection = connection;
|
||||
@@ -72,15 +71,6 @@ void MultiplayerLocalPlayer::tick()
|
||||
|
||||
void MultiplayerLocalPlayer::sendPosition()
|
||||
{
|
||||
bool sprinting = isSprinting();
|
||||
if (sprinting != lastSprinting)
|
||||
{
|
||||
if (sprinting) connection->send(shared_ptr<PlayerCommandPacket>( new PlayerCommandPacket(shared_from_this(), PlayerCommandPacket::START_SPRINTING)));
|
||||
else connection->send(shared_ptr<PlayerCommandPacket>( new PlayerCommandPacket(shared_from_this(), PlayerCommandPacket::STOP_SPRINTING)));
|
||||
|
||||
lastSprinting = sprinting;
|
||||
}
|
||||
|
||||
bool sneaking = isSneaking();
|
||||
if (sneaking != lastSneaked)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user