From c6151abbe96562811683b4383a0dd4c2dcdd9752 Mon Sep 17 00:00:00 2001 From: Crabman77 Date: Tue, 5 Jul 2022 15:49:18 +0200 Subject: [PATCH] fix issue https://sys4.fr/gitea/nalc/nalc-server-mods/issues/109 Torch name change if placed on wall/ceiling and break torch awards --- src/triggers.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/triggers.lua b/src/triggers.lua index 8759404..0bee385 100644 --- a/src/triggers.lua +++ b/src/triggers.lua @@ -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)