aboutsummaryrefslogtreecommitdiff
path: root/advtrains/advtrains_luaautomation
diff options
context:
space:
mode:
authororwell96 <mono96.mml@gmail.com>2017-04-07 23:05:10 +0200
committerorwell96 <mono96.mml@gmail.com>2017-04-07 23:06:02 +0200
commit4ea222fd6a2871b608cb100fd71daf6e14cba8bc (patch)
tree309fc710df4c7ae90276f71e0ff32ee18456d5a2 /advtrains/advtrains_luaautomation
parente795f512933687773acc4fd95607df1e757e1c43 (diff)
downloadadvtrains-4ea222fd6a2871b608cb100fd71daf6e14cba8bc.tar.gz
advtrains-4ea222fd6a2871b608cb100fd71daf6e14cba8bc.tar.bz2
advtrains-4ea222fd6a2871b608cb100fd71daf6e14cba8bc.zip
record_protection_violation: fix player name not being passed
Diffstat (limited to 'advtrains/advtrains_luaautomation')
-rw-r--r--advtrains/advtrains_luaautomation/pcnaming.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/advtrains_luaautomation/pcnaming.lua b/advtrains/advtrains_luaautomation/pcnaming.lua
index 18f1017..56ed2d6 100644
--- a/advtrains/advtrains_luaautomation/pcnaming.lua
+++ b/advtrains/advtrains_luaautomation/pcnaming.lua
@@ -35,7 +35,7 @@ minetest.register_craftitem("advtrains_luaautomation:pcnaming",{
if pointed_thing.type=="node" then
local pos=pointed_thing.under
if advtrains.is_protected(pos, pname) then
- minetest.record_protection_violation(pos, name)
+ minetest.record_protection_violation(pos, pname)
return
end
local node=minetest.get_node(pos)