1
0
mirror of https://github.com/veden/Rampant.git synced 2025-01-28 03:29:34 +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

View File

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

View File

@ -2,7 +2,8 @@
Version: 2.0.3
Date: 15. 12. 2021
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

View File

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