mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2025-03-11 06:07:44 +01:00
Use drop
as pickblock if it is a string
This commit is contained in:
parent
843294f607
commit
8378cd1849
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue