Skip to content

Commit

Permalink
Replace deprecated get_metadata() call (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
Niklp09 authored Jul 16, 2024
1 parent 1ef4837 commit 8f796e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homedecor_books/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8f796e4

Please sign in to comment.