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.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/advtrains/advtrains_luaautomation/pcnaming.lua b/advtrains/advtrains_luaautomation/pcnaming.lua
index fbfea8a..5604749 100644
--- a/advtrains/advtrains_luaautomation/pcnaming.lua
+++ b/advtrains/advtrains_luaautomation/pcnaming.lua
@@ -30,6 +30,7 @@ minetest.register_craftitem("advtrains_luaautomation:pcnaming",{
end
if not minetest.check_player_privs(pname, {atlatc=true}) then
minetest.chat_send_player(pname, "Missing privilege: atlatc")
+ return
end
if pointed_thing.type=="node" then
local pos=pointed_thing.under