mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-01-12 02:28:14 +02:00
WD: Fix wrong force warnings
This commit is contained in:
parent
28c9baae2b
commit
c4e70db933
@ -927,6 +927,11 @@ function Public._esp:check_unit_group()
|
||||
return false
|
||||
end
|
||||
|
||||
if self.entity.force.index ~= self.group.force.index then
|
||||
log('EnemyStates::CheckUnitGroup - Unit group force is not the same as the entity force')
|
||||
return false
|
||||
end
|
||||
|
||||
self.group.add_member(self.entity)
|
||||
return true
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user