Use drop as pickblock if it is a string

This commit is contained in:
Mikita Wiśniewski 2025-01-11 15:33:12 +07:00
parent 843294f607
commit 8378cd1849

View file

@ -22,8 +22,10 @@ function vl_pickblock.pickblock(itemstack, placer, pointed_thing)
rnode = def._vl_pickblock
elseif not illegal then
rnode = node.name
elseif def.drop and type(def.drop) == "string" then
rnode = def.drop
else
-- node is illegal and has no _vl_pickblock, tough luck
-- node is illegal and has no _vl_pickblock OR drop, tough luck
return
end