mirror of
https://github.com/pyrollo/display_modpack.git
synced 2024-12-04 20:13:44 +01:00
Replaced core reference by usual minetest reference
This commit is contained in:
parent
9ca3474360
commit
6c92826e3c
2
init.lua
2
init.lua
@ -146,7 +146,7 @@ end
|
|||||||
function display_api.on_activate(entity, staticdata)
|
function display_api.on_activate(entity, staticdata)
|
||||||
if entity then
|
if entity then
|
||||||
if string.sub(staticdata, 1, string.len("return")) == "return" 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
|
if data and type(data) == "table" then
|
||||||
entity.nodepos = data.nodepos
|
entity.nodepos = data.nodepos
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user