mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-03-15 12:21:24 +00:00
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
This commit is contained in:
parent
ae7206c006
commit
67b13a5942
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue