v1.4.4
This commit is contained in:
commit
9c94d113d3
10260 changed files with 1237388 additions and 0 deletions
14
assets/devel/versioning/PlayerEntity_9_10.lua
Normal file
14
assets/devel/versioning/PlayerEntity_9_10.lua
Normal file
|
@ -0,0 +1,14 @@
|
|||
function update(data)
|
||||
local oldMetadata = versioning.loadVersionedJson("player/" .. data.uuid .. ".metadata")
|
||||
if oldMetadata then
|
||||
if not data.aiState then
|
||||
data.aiState = oldMetadata.ai
|
||||
end
|
||||
|
||||
if not data.shipUpgrades then
|
||||
data.shipUpgrades = oldMetadata.shipUpgrades
|
||||
end
|
||||
end
|
||||
|
||||
return data
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue