1
0
mirror of https://github.com/veden/Rampant.git synced 2025-02-17 14:01:25 +02:00

fixed nil name in upgrade entity

This commit is contained in:
Aaron Veden 2021-12-16 19:20:29 -08:00
parent eaf4216e01
commit febb4e34dd
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84
3 changed files with 4 additions and 3 deletions

@ -550,7 +550,7 @@ function upgrade.attempt(universe)
end end
end end
game.print("Rampant - Version 2.0.2") game.print("Rampant - Version 2.0.3")
end end
return (starting ~= global.version) and global.version return (starting ~= global.version) and global.version

@ -2,7 +2,8 @@
Version: 2.0.3 Version: 2.0.3
Date: 15. 12. 2021 Date: 15. 12. 2021
Bugfixes: Bugfixes:
- Fixed typo in require import for upgrade on setChunkBase - Fixed typo in require import for upgrade on setChunkBase (Thanks Eerrikki for reporting)
- Fixed upgradeEntity could return a nil name which failed in a surface.create_entity call (Thanks SimplyData for reporting)
--------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------
Version: 2.0.2 Version: 2.0.2

@ -281,7 +281,7 @@ function baseUtils.upgradeEntity(entity, base, map, disPos, evolve, register)
map, map,
evolve) evolve)
if (spawnerName ~= entity.name) then if spawnerName and (spawnerName ~= entity.name) then
local entityData = { local entityData = {
["name"] = spawnerName, ["name"] = spawnerName,
["position"] = disPos, ["position"] = disPos,