mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-01-08 00:39:30 +02:00
1 more performance boost
This commit is contained in:
parent
3a1caac80c
commit
2ebf9ec808
@ -139,7 +139,7 @@ function Public.near_another_town(force_name, position, surface, radius)
|
|||||||
-- check for nearby town entities
|
-- check for nearby town entities
|
||||||
if table.size(forces) > 0 then
|
if table.size(forces) > 0 then
|
||||||
if surface.count_entities_filtered({position = position, radius = radius,
|
if surface.count_entities_filtered({position = position, radius = radius,
|
||||||
force = forces, type=town_zoning_entity_types}) > 0 then
|
force = forces, type=town_zoning_entity_types, limit = 1}) > 0 then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user