mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-28 05:43:43 +01:00
Merge pull request 'Fix Honeycomb Right-click' (#4614) from fix-honeycomb into master
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4614 Reviewed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
This commit is contained in:
commit
93165a042b
@ -15,13 +15,13 @@ function mcl_honey.wax_block(pos, node, player, itemstack)
|
||||
end
|
||||
|
||||
local def = minetest.registered_nodes[node.name]
|
||||
if not def then return end
|
||||
|
||||
if def and def._mcl_waxed_variant then
|
||||
node.name = def._mcl_waxed_variant
|
||||
else
|
||||
return
|
||||
end
|
||||
-- Handle right-clicking nodes
|
||||
local new_stack = mcl_util.call_on_rightclick(itemstack, player, {type = "node", under = pos})
|
||||
if new_stack and new_stack ~= itemstack then return end
|
||||
|
||||
if not def._mcl_waxed_variant then return end
|
||||
node.name = def._mcl_waxed_variant
|
||||
minetest.set_node(pos, node)
|
||||
awards.unlock(player:get_player_name(), "mcl:wax_on")
|
||||
|
Loading…
Reference in New Issue
Block a user