Skip to content

Commit de19806

Browse files
fix: GetNonPlayerEntitiesInRange returning Players (#483)
1 parent b829bbf commit de19806

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Obsidian/WorldData/World.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,11 @@ public IEnumerable<Entity> GetNonPlayerEntitiesInRange(VectorF location, float d
329329
// Return entities in range
330330
foreach ((_, Entity entity) in region.Entities)
331331
{
332+
if (entity is Player)
333+
{
334+
continue;
335+
}
336+
332337
var locationDifference = LocationDiff.GetDifference(entity.Position, location);
333338

334339
if (locationDifference.CalculatedDifference <= distance)

0 commit comments

Comments
 (0)