Skip to content

Commit

Permalink
Fix bookshelf's allow_metadata_inventory_move (check if item belongs …
Browse files Browse the repository at this point in the history
…to "book" group instead of checking if it is "default:book")
  • Loading branch information
Ekdohibs committed Jun 17, 2015
1 parent d8dd933 commit 15ef8b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mods/default/nodes.lua
Expand Up @@ -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
Expand Down

0 comments on commit 15ef8b0

Please sign in to comment.