From: Auke Kok Date: Sat, 29 Apr 2017 03:56:51 +0000 (-0700) Subject: Fix books getting erased on page button use. X-Git-Tag: 0.4.16~18 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=67b13a5942783a52134572414680dc40a479bb30;p=oweals%2Fminetest_game.git 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 --- diff --git a/mods/default/craftitems.lua b/mods/default/craftitems.lua index 75ac5507..33cdd5f6 100644 --- a/mods/default/craftitems.lua +++ b/mods/default/craftitems.lua @@ -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