Replaced core reference by usual minetest reference

This commit is contained in:
Pierre-Yves Rollo 2018-12-01 20:44:10 +01:00
parent 03983f081e
commit bcc181cb15

View File

@ -146,7 +146,7 @@ end
function display_api.on_activate(entity, staticdata)
if entity then
if string.sub(staticdata, 1, string.len("return")) == "return" then
local data = core.deserialize(staticdata)
local data = minetest.deserialize(staticdata)
if data and type(data) == "table" then
entity.nodepos = data.nodepos
end