mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-12-10 17:40:37 +01:00
Comments, small bugfixes removed legacy elements
This commit is contained in:
@@ -160,7 +160,7 @@ class Objects:
|
||||
|
||||
def idx_by_entity(self, entity):
|
||||
try:
|
||||
return h.get_first_index(self, filter_by=lambda x: x.belongs_to_entity(entity))
|
||||
return h.get_first_index(self, filter_by=lambda x: x == entity)
|
||||
except (StopIteration, AttributeError):
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user