mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-22 08:00:18 +01:00
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,
|
||||
param2 = fdir,
|
||||
})
|
||||
local text = itemstack:get_metadata() or ""
|
||||
local text = itemstack:get_meta():get_string("")
|
||||
local meta = minetest.get_meta(pos)
|
||||
local data = minetest.deserialize(text) or {}
|
||||
if type(data) ~= "table" then
|
||||
|
Loading…
Reference in New Issue
Block a user