1
0
mirror of https://github.com/minetest/minetest_game.git synced 2025-06-30 13:50:23 +02:00

Replace deprecated get_metadata() calls (#3142)

This commit is contained in:
Niklp
2024-07-27 15:42:08 +03:00
committed by GitHub
parent 9cb57ae5f2
commit 88ecab34d9
3 changed files with 4 additions and 4 deletions

View File

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