Fix for bots disappearing while idle

This commit is contained in:
Uleat
2019-01-27 09:14:47 -05:00
parent 5b371ad054
commit 036e4739ae
4 changed files with 33 additions and 4 deletions
+6
View File
@@ -1075,6 +1075,9 @@ void Bot::WalkTo(float x, float y, float z)
if (IsSitting())
Stand();
if (ping_timer.Enabled())
ping_timer.Disable();
Mob::WalkTo(x, y, z);
}
@@ -1083,6 +1086,9 @@ void Bot::RunTo(float x, float y, float z)
if (IsSitting())
Stand();
if (ping_timer.Enabled())
ping_timer.Disable();
Mob::RunTo(x, y, z);
}
#endif