depends on trusted_player

master
tchncs 2016-06-21 22:25:19 +02:00
parent 5df9c6fe88
commit 174ebfdc83
2 changed files with 2 additions and 1 deletions

1
depends.txt Normal file
View File

@ -0,0 +1 @@
tnt

View File

@ -17,7 +17,7 @@ minetest.register_chatcommand("mapfix", {
func = function(name, param)
local pos = minetest.get_player_by_name(name):getpos()
local size = tonumber(param) or default_size
local privs = minetest.check_player_privs(name, {server=true})
local privs = minetest.check_player_privs(name, {trusted_player=true})
local time = os.time()
if not privs then