1
0
Fork 0

Fix waxing duplication of shulker box

make-new-music-louder
Johannes Fritz 2023-03-09 15:16:11 -06:00
parent 8d318dfaa2
commit 3c9b3497bb
1 changed files with 3 additions and 2 deletions

View File

@ -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