Fix for bots disappearing while idle

This commit is contained in:
Uleat committed 2019-01-27 09:14:47 -05:00
1 parent 5b371ad054
commit 036e4739ae
4 files changed
+33 -4

No files matched your search

+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