1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-12-22 23:10:17 +01: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:
Auke Kok 2017-04-28 20:56:51 -07:00 committed by Auke Kok
parent ae7206c006
commit 67b13a5942

View File

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