Torch name change if placed on wall/ceiling and break torch awards
This commit is contained in:
Crabman77 2022-07-05 15:49:18 +02:00
parent c27d527cfc
commit c6151abbe9
1 changed files with 4 additions and 0 deletions

View File

@ -99,6 +99,10 @@ minetest.register_on_placenode(function(pos, node, player)
local node_name = node.name
node_name = minetest.registered_aliases[node_name] or node_name
if string.match(node_name, "default:torch_") then -- NALC: fix torch name change on wall place
node_name = "default:torch"
end
awards.notify_place(player, node_name)
end)