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:
parent
eaf4216e01
commit
febb4e34dd
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user