forked from mtcontrib/awards
fix issue nalc/nalc-server-mods#109
Torch name change if placed on wall/ceiling and break torch awards
This commit is contained in:
parent
c27d527cfc
commit
c6151abbe9
@ -99,6 +99,10 @@ minetest.register_on_placenode(function(pos, node, player)
|
|||||||
|
|
||||||
local node_name = node.name
|
local node_name = node.name
|
||||||
node_name = minetest.registered_aliases[node_name] or 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)
|
awards.notify_place(player, node_name)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user