mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-10 02:01:07 +01:00
Don't crash trying to right click unknown nodes while holding honeycomb
This commit is contained in:
parent
64c04a2f0a
commit
f9cd2500c0
1 changed files with 2 additions and 3 deletions
|
@ -18,10 +18,9 @@ function mcl_honey.wax_block(pos, node, player, itemstack)
|
||||||
|
|
||||||
if def and def._mcl_waxed_variant then
|
if def and def._mcl_waxed_variant then
|
||||||
node.name = def._mcl_waxed_variant
|
node.name = def._mcl_waxed_variant
|
||||||
else
|
elseif def and def.on_rightclick then
|
||||||
if def.on_rightclick then
|
|
||||||
return def.on_rightclick(pos, node, player, itemstack)
|
return def.on_rightclick(pos, node, player, itemstack)
|
||||||
end
|
else
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue