mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-07-15 18:56:43 -04:00
Replace deprecated get_metadata()
calls (#3142)
This commit is contained in:
parent
9cb57ae5f2
commit
88ecab34d9
3 changed files with 4 additions and 4 deletions
|
@ -57,7 +57,7 @@ local function book_on_use(itemstack, user)
|
|||
local page, page_max, lines, string = 1, 1, {}, ""
|
||||
|
||||
-- Backwards compatibility
|
||||
local old_data = minetest.deserialize(itemstack:get_metadata())
|
||||
local old_data = minetest.deserialize(itemstack:get_meta():get_string(""))
|
||||
if old_data then
|
||||
meta:from_table({ fields = old_data })
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue