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

fixed Krastorio2 interface position parameter

This commit is contained in:
Aaron Veden 2021-12-14 20:47:16 -08:00
parent 0f4d4868ef
commit d9c733cb54
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84
2 changed files with 4 additions and 2 deletions

View File

@ -6,6 +6,7 @@ Date: 23. 11. 2021
Bugfixes:
- Fixed chunkPassScanning not checking for enemy structures when determining passability
- Potential bugfix for evolutionTable being nil, still need a save to verify
- Corrected Krastorio2 position parameter wanting xy pair. (Krastorio2 1.1.6 that is currently published at the time of this update is broken still, see thread https://mods.factorio.com/mod/Rampant/discussion/5f44980455e55634147d01f4)
---------------------------------------------------------------------------------------------------
Version: 2.0.0

View File

@ -149,7 +149,8 @@ function chunkProcessor.processPendingUpgrades(universe, tick)
universe.pendingUpgrades[entityId] = nil
local surface = entity.surface
local query = universe.ppuUpgradeEntityQuery
setPositionInQuery(query, entityData.position or entity.position)
local position = entityData.position or entity.position
setPositionInQuery(query, position)
query.name = entityData.name
unregisterEnemyBaseStructure(entityData.map, entity, nil, true)
entity.destroy()
@ -157,7 +158,7 @@ function chunkProcessor.processPendingUpgrades(universe, tick)
if createdEntity and createdEntity.valid then
registerEnemyBaseStructure(entityData.map, createdEntity, tick, entityData.base, true)
if remote.interfaces["kr-creep"] then
remote.call("kr-creep", "spawn_creep_at_position", surface, query.position)
remote.call("kr-creep", "spawn_creep_at_position", surface, position)
end
end
else