From 67b13a5942783a52134572414680dc40a479bb30 Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Fri, 28 Apr 2017 20:56:51 -0700 Subject: [PATCH] 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 --- mods/default/craftitems.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.25.1