aboutsummaryrefslogtreecommitdiff
path: root/advtrains/advtrains_luaautomation/pcnaming.lua
diff options
context:
space:
mode:
authororwell96 <mono96.mml@gmail.com>2017-03-16 22:04:32 +0100
committerorwell96 <mono96.mml@gmail.com>2017-03-16 22:04:32 +0100
commita091ac2e1da07b442c8f58237667287714adc838 (patch)
tree8959739c792488df34d06c380baccac4e4791bf8 /advtrains/advtrains_luaautomation/pcnaming.lua
parentba0e75a692cfe2a359dc74891548d43fb2de8c21 (diff)
downloadadvtrains-a091ac2e1da07b442c8f58237667287714adc838.tar.gz
advtrains-a091ac2e1da07b442c8f58237667287714adc838.tar.bz2
advtrains-a091ac2e1da07b442c8f58237667287714adc838.zip
Fix privilege enforcement being useless
Privilege violations caused an error message but didn't abort the operation
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