Skip to content
Snippets Groups Projects
Commit 15ef8b09 authored by Novatux's avatar Novatux
Browse files

Fix bookshelf's allow_metadata_inventory_move (check if item belongs to "book"...

Fix bookshelf's allow_metadata_inventory_move (check if item belongs to "book" group instead of checking if it is "default:book")
parent d8dd9332
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment