mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-25 20:11:06 +01:00
further optimize and reformat mcl_honey's init.lua
This commit is contained in:
parent
c4e4a8e4d2
commit
46ca650ea4
1 changed files with 2 additions and 7 deletions
|
@ -41,14 +41,9 @@ minetest.register_craftitem("mcl_honey:honeycomb", {
|
||||||
end
|
end
|
||||||
local node = minetest.get_node(pointed_thing.under)
|
local node = minetest.get_node(pointed_thing.under)
|
||||||
local pos = pointed_thing.under
|
local pos = pointed_thing.under
|
||||||
local node_name = node.name
|
|
||||||
|
|
||||||
local def = minetest.registered_nodes[node_name]
|
-- wax the block. This is the only viable usage of honeycomb's on_place. If it "fails" to wax, then nothing is changed.
|
||||||
|
|
||||||
if def and def._mcl_copper_waxed_variant then
|
|
||||||
-- wax the copper block.
|
|
||||||
return mcl_honey.wax_block(pos, node, placer, itemstack)
|
return mcl_honey.wax_block(pos, node, placer, itemstack)
|
||||||
end
|
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue