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

FACTO-303: Fixed modded enemy structures not being registered

This commit is contained in:
Aaron Veden 2023-04-07 21:47:42 -07:00
parent 60451e662c
commit c6c258082e
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84
2 changed files with 2 additions and 3 deletions

View File

@ -4,6 +4,7 @@ Version: 3.3.1
- Fixed hive owned structure cleanup routine from not checking hive id correctly
- Fixed hive building cursor drifting
- Fixed hive not updating build stats when upgraded
- Fixed other modded enemy structures not be registered with Rampant
---------------------------------------------------------------------------------------------------
Version: 3.3.0

View File

@ -390,9 +390,7 @@ local function onBuild(event)
if entity.valid then
local entityForceName = entity.force.name
if entityForceName == "enemy" then
if BUILDING_HIVE_TYPE_LOOKUP[entity.name] then
onEnemyBaseBuild(entity, event.tick)
end
onEnemyBaseBuild(entity, event.tick)
else
local map = Universe.maps[entity.surface.index]
if not map then