aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authororwell96 <mono96.mml@gmail.com>2017-05-22 15:08:10 +0200
committerorwell96 <mono96.mml@gmail.com>2017-05-22 15:08:10 +0200
commit0f14562112f0151cac6dad255210ec8cbaa9db85 (patch)
treee069040e400ec878c5d82e2e15c09d8846f05327
parentd85f95ad10ac89792d940ba6e8dc1c341ff2757a (diff)
downloadadvtrains-0f14562112f0151cac6dad255210ec8cbaa9db85.tar.gz
advtrains-0f14562112f0151cac6dad255210ec8cbaa9db85.tar.bz2
advtrains-0f14562112f0151cac6dad255210ec8cbaa9db85.zip
Fix Syntax Error
-rw-r--r--advtrains/advtrains/nodedb.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/advtrains/nodedb.lua b/advtrains/advtrains/nodedb.lua
index 4ab551d..8103b13 100644
--- a/advtrains/advtrains/nodedb.lua
+++ b/advtrains/advtrains/nodedb.lua
@@ -289,7 +289,7 @@ minetest.register_chatcommand("at_restore_ndb",
description = "Write node db back to map", -- Full description
privs = {train_operator=true, worldedit=true}, -- Require the "privs" privilege to run
func = function(name, param)
- if !minetest.check_player_privs(name, {server=true}) and os.time() < ptime+30 then
+ if not minetest.check_player_privs(name, {server=true}) and os.time() < ptime+30 then
return false, "Please wait at least 30s from the previous execution of /at_restore_ndb!"
end
ndb.restore_all()