mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-22 16:09:33 +01:00
Fix crash w/ mcl_util group-less item move
This commit is contained in:
parent
f7eecbcf27
commit
40783d2ca6
1 changed files with 2 additions and 1 deletions
|
@ -159,7 +159,8 @@ function mcl_util.move_item_container(source_pos, source_list, source_stack_id,
|
|||
return mcl_util.move_item(sinv, source_list, source_stack_id, dinv, "main")
|
||||
elseif dnodedef.groups.container == 3 then
|
||||
local stack = sinv:get_stack(source_list, source_stack_id)
|
||||
if stack and (not stack:is_empty()) and (not minetest.registered_nodes[stack:get_name()].groups.shulker_box) then
|
||||
local def = minetest.registered_nodes[stack:get_name()]
|
||||
if stack and (not stack:is_empty()) and (not (def and def.groups and def.groups.shulker_box)) then
|
||||
return mcl_util.move_item(sinv, source_list, source_stack_id, dinv, "main")
|
||||
end
|
||||
elseif dnodedef.groups.container == 4 then
|
||||
|
|
Loading…
Reference in a new issue