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