From 03bf8ee8212d9038ade42b17b999ae621eeaa979 Mon Sep 17 00:00:00 2001 From: Aaron Veden Date: Wed, 24 Nov 2021 21:22:11 -0800 Subject: [PATCH] removed bounding box check for building bases --- changelog.txt | 2 ++ libs/BaseUtils.lua | 12 ------------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/changelog.txt b/changelog.txt index a8bd19f..169c5a9 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,6 +1,8 @@ --------------------------------------------------------------------------------------------------- Version: 1.1.5 Date: 23. 11. 2021 + Improvements: + - Removed bounding box check when placing enemy buildings or upgrading buildings inplace Tweaks: - Doubled the processing rate of regional faction bases with new enemies - Added a small chance (0.5%) that Hives can spawn outside resource patches (Thank you Dimm2101) diff --git a/libs/BaseUtils.lua b/libs/BaseUtils.lua index c4f6473..9002bed 100644 --- a/libs/BaseUtils.lua +++ b/libs/BaseUtils.lua @@ -283,18 +283,6 @@ function baseUtils.upgradeEntity(entity, baseAlignment, map, disPos, evolve) local query = universe.upgradeEntityQuery query.name = name query.position = disPos or position - - if not surface.can_place_entity(query) then - local newPosition = surface.find_non_colliding_position( - name, - disPos or position, - CHUNK_SIZE, - 1, - true - ) - query.position = newPosition or disPos or position - end - query.name = spawnerName if remote.interfaces["kr-creep"] then remote.call("kr-creep", "spawn_creep_at_position", surface, query.position)