Replace deprecated get_metadata() call (#75)

This commit is contained in:
Niklp 2024-07-16 07:50:36 +02:00 committed by GitHub
parent 1ef4837abe
commit 8f796e43af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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