Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sofar committed Apr 29, 2017
1 parent ae7206c commit 67b13a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/default/craftitems.lua
Expand Up @@ -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

Expand Down

0 comments on commit 67b13a5

Please sign in to comment.