Merge branch 'MCCTeam:master' into telegram-limit-quit

This commit is contained in:
Anon 2023-03-26 12:19:00 +00:00 committed by GitHub
commit f6850920a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 5135 additions and 814 deletions

View file

@ -151,12 +151,6 @@ namespace MinecraftClient.ChatBots
public override void OnEntityMove(Entity entity)
{
if (_updateCounter < Settings.DoubleToTick(Config.Update_Limit))
return;
_updateCounter = 0;
if (entity.Type != EntityType.Player)
return;
@ -166,6 +160,11 @@ namespace MinecraftClient.ChatBots
if (_playerToFollow != entity.Name.ToLower())
return;
if (_updateCounter < Settings.DoubleToTick(Config.Update_Limit))
return;
_updateCounter = 0;
if (!CanMoveThere(entity.Location))
return;