aboutsummaryrefslogtreecommitdiff
path: root/advtrains/nodedb.lua
diff options
context:
space:
mode:
Diffstat (limited to 'advtrains/nodedb.lua')
-rw-r--r--advtrains/nodedb.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/nodedb.lua b/advtrains/nodedb.lua
index b17841c..37dc3f7 100644
--- a/advtrains/nodedb.lua
+++ b/advtrains/nodedb.lua
@@ -293,7 +293,7 @@ minetest.register_chatcommand("at_sync_ndb",
privs = {train_operator=true},
func = function(name, param)
return advtrains.pcall(function()
- if not minetest.check_player_privs(name, {server=true}) and os.time() < ptime+30 then
+ if os.time() < ptime+30 then
return false, "Please wait at least 30s from the previous execution of /at_restore_ndb!"
end
local text = ndb.restore_all()