1
0
mirror of https://github.com/veden/Rampant.git synced 2025-03-17 20:58:35 +02:00

fixed trying to build same structure with new enemies

This commit is contained in:
Aaron Veden 2021-11-24 20:35:58 -08:00
parent 879205d0d5
commit 468237d17e
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84
2 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@ Date: 23. 11. 2021
- Fixed vengence squads only processing half the expected chunks
- Fixed nest processing only processing half the nests (Thank you Dimm2101)
- Fixed active and raid nest processing only processing half the nests (Thank you Dimm2101)
- Fixed new enemy building upgrade could replace an entity with the same entity (Thank you Dimm2101)
---------------------------------------------------------------------------------------------------
Version: 1.1.4

View File

@ -280,7 +280,7 @@ function baseUtils.upgradeEntity(entity, baseAlignment, map, disPos, evolve)
map,
evolve)
if spawnerName then
if spawnerName and (spawnerName ~= entity.name) then
entity.destroy()
local name = universe.buildingSpaceLookup[spawnerName] or spawnerName
local query = universe.upgradeEntityQuery