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
1 changed files with 1 additions and 1 deletions

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