Fixed bug with serialization/deserialization

This commit is contained in:
flamendless 2023-02-14 18:18:42 -03:00 committed by Pablo Mayobre
parent e8ccf0f295
commit b47fe315c7
No known key found for this signature in database
GPG key ID: 13A2F589D013E0E7
2 changed files with 5 additions and 4 deletions

View file

@ -398,7 +398,8 @@ function World:deserialize(data, startClean, ignoreGenerator)
if data[i].key then
local component = Components.key:__new(entity)
entity.key = component:deserialize(data[i].key)
component:deserialize(data[i].key)
entity.key = component
entity:__dirty()
end