From 15ef8b099524257d8089ee4a149e2abcd17f887c Mon Sep 17 00:00:00 2001 From: Novatux Date: Wed, 17 Jun 2015 18:33:54 +0200 Subject: [PATCH] Fix bookshelf's allow_metadata_inventory_move (check if item belongs to "book" group instead of checking if it is "default:book") --- mods/default/nodes.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua index 31d61b59..a915dc2f 100644 --- a/mods/default/nodes.lua +++ b/mods/default/nodes.lua @@ -1402,7 +1402,8 @@ minetest.register_node("default:bookshelf", { local stack = inv:get_stack(from_list, from_index) local to_stack = inv:get_stack(to_list, to_index) if to_list == "books" then - if stack:get_name() == "default:book" and to_stack:is_empty() then + if minetest.get_item_group(stack:get_name(), "book") ~= 0 + and to_stack:is_empty() then return 1 else return 0 -- 2.25.1