Change honeycomb to use same right-click logic recently added to buckets and bottles
This commit is contained in:
parent
f10827d0d6
commit
3e85736404
|
@ -17,9 +17,9 @@ function mcl_honey.wax_block(pos, node, player, itemstack)
|
||||||
local def = minetest.registered_nodes[node.name]
|
local def = minetest.registered_nodes[node.name]
|
||||||
if not def then return end
|
if not def then return end
|
||||||
|
|
||||||
if def.on_rightclick then
|
-- Handle right-clicking nodes
|
||||||
return def.on_rightclick(pos, node, player, itemstack)
|
local new_stack = mcl_util.call_on_rightclick(itemstack, player, {type = "node", under = pos})
|
||||||
end
|
if new_stack and new_stack ~= itemstack then return end
|
||||||
|
|
||||||
if not def._mcl_waxed_variant then return end
|
if not def._mcl_waxed_variant then return end
|
||||||
node.name = def._mcl_waxed_variant
|
node.name = def._mcl_waxed_variant
|
||||||
|
|
Loading…
Reference in New Issue