From 2ebf9ec808b87ced631b837941692bba76a25d99 Mon Sep 17 00:00:00 2001 From: blubFisch Date: Sat, 8 Oct 2022 13:21:47 +0100 Subject: [PATCH] 1 more performance boost --- maps/scrap_towny_ffa/building.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maps/scrap_towny_ffa/building.lua b/maps/scrap_towny_ffa/building.lua index 7749cee8..3c3f53d5 100644 --- a/maps/scrap_towny_ffa/building.lua +++ b/maps/scrap_towny_ffa/building.lua @@ -139,7 +139,7 @@ function Public.near_another_town(force_name, position, surface, radius) -- check for nearby town entities if table.size(forces) > 0 then 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 end end