fix: error with deserialization in 5.6-dev

master
root 2022-06-13 16:36:42 +02:00
parent d2d3cedf05
commit c301727e14
1 changed files with 1 additions and 1 deletions

View File

@ -290,7 +290,7 @@ function petz.set_initial_properties(self, staticdata, dtime_s)
elseif value["type"] == "boolean" then
prop_value = minetest.is_yes(static_data_table[static_table_name][key])
elseif value["type"] == "table" then
prop_value = minetest.deserialize(static_data_table[static_table_name][key])
prop_value = static_data_table[static_table_name][key]
elseif value["type"] == "player" then
prop_value = nil
end