aboutsummaryrefslogtreecommitdiff
path: root/advtrains/advtrains_luaautomation/pcnaming.lua
diff options
context:
space:
mode:
Diffstat (limited to 'advtrains/advtrains_luaautomation/pcnaming.lua')
-rw-r--r--advtrains/advtrains_luaautomation/pcnaming.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/advtrains/advtrains_luaautomation/pcnaming.lua b/advtrains/advtrains_luaautomation/pcnaming.lua
index 5604749..18f1017 100644
--- a/advtrains/advtrains_luaautomation/pcnaming.lua
+++ b/advtrains/advtrains_luaautomation/pcnaming.lua
@@ -34,7 +34,8 @@ minetest.register_craftitem("advtrains_luaautomation:pcnaming",{
end
if pointed_thing.type=="node" then
local pos=pointed_thing.under
- if minetest.is_protected(pos, name) then
+ if advtrains.is_protected(pos, pname) then
+ minetest.record_protection_violation(pos, name)
return
end
local node=minetest.get_node(pos)