Remove debug code for mobs

This commit is contained in:
Drew DeVault 2015-07-02 22:12:21 -06:00
parent e00cc2fe60
commit a236da0076

View File

@ -125,12 +125,6 @@ namespace TrueCraft.Core.Entities
public override void Update(IEntityManager entityManager) public override void Update(IEntityManager entityManager)
{ {
AdvancePath(); AdvancePath();
var nearby = entityManager.EntitiesInRange(Position, 30);
var player = nearby.FirstOrDefault(e => e is PlayerEntity);
if (player != null)
{
Face(player.Position);
}
base.Update(entityManager); base.Update(entityManager);
} }
} }