forked from nalc/homedecor_modpack
Replace deprecated get_metadata()
call (#75)
This commit is contained in:
parent
1ef4837abe
commit
8f796e43af
|
@ -81,7 +81,7 @@ for _, c in ipairs(bookcolors) do
|
||||||
name = "homedecor:book_"..color,
|
name = "homedecor:book_"..color,
|
||||||
param2 = fdir,
|
param2 = fdir,
|
||||||
})
|
})
|
||||||
local text = itemstack:get_metadata() or ""
|
local text = itemstack:get_meta():get_string("")
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
local data = minetest.deserialize(text) or {}
|
local data = minetest.deserialize(text) or {}
|
||||||
if type(data) ~= "table" then
|
if type(data) ~= "table" then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user