1
0
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:
Gerkiz 2024-11-26 08:26:16 +01:00
parent 28c9baae2b
commit c4e70db933

View File

@ -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