mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-29 22:33:46 +01:00
Merge pull request 'Fix waxing duplication of shulker box' (#3527) from waxing into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/3527 Reviewed-by: ancientmarinerdev <ancientmariner_dev@proton.me>
commit
325de7f2cd
@ -16,10 +16,11 @@ function mcl_honey.wax_block(pos, node, player, itemstack)
|
|||||||
|
|
||||||
local def = minetest.registered_nodes[node.name]
|
local def = minetest.registered_nodes[node.name]
|
||||||
|
|
||||||
if def and def._mcl_copper_waxed_variant then
|
if not def or not def._mcl_copper_waxed_variant then
|
||||||
node.name = def._mcl_copper_waxed_variant
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
node.name = def._mcl_copper_waxed_variant
|
||||||
minetest.set_node(pos, node)
|
minetest.set_node(pos, node)
|
||||||
awards.unlock(player:get_player_name(), "mcl:wax_on")
|
awards.unlock(player:get_player_name(), "mcl:wax_on")
|
||||||
if not minetest.is_creative_enabled(player:get_player_name()) then
|
if not minetest.is_creative_enabled(player:get_player_name()) then
|
||||||
|
Loading…
Reference in New Issue
Block a user