Skip to content
Snippets Groups Projects
Commit 67b13a59 authored by Auke Kok's avatar Auke Kok Committed by Auke Kok
Browse files

Fix books getting erased on page button use.

Changing the book page caused the entire itemstack meta to
get wiped due to improper calling of meta:from_table().

Fixes #1711
parent ae7206c0
No related branches found
No related tags found
No related merge requests found
......@@ -139,7 +139,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
end
end
stack:get_meta():from_table(data)
stack:get_meta():from_table({fields = data})
stack = book_on_use(stack, player)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment