Remove debug code for mobs
This commit is contained in:
parent
e00cc2fe60
commit
a236da0076
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user