diff options
Diffstat (limited to 'commands/create_lag.lua')
-rw-r--r-- | commands/create_lag.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/commands/create_lag.lua b/commands/create_lag.lua index 6598910..9f095da 100644 --- a/commands/create_lag.lua +++ b/commands/create_lag.lua @@ -3,13 +3,12 @@ local lag_chance = 0 local wait = mesecons_debug.wait - minetest.register_chatcommand("create_lag", { description = "foce a wait of <duration> us for 1 / <chance> server steps", params = "<duration> <chance>", privs = { mesecons_debug = true }, func = function(_name, setting) - local lag, chance = setting:match('^(%S+)%s+(%S+)$') + local lag, chance = setting:match("^(%S+)%s+(%S+)$") lag = tonumber(lag) chance = tonumber(chance) if not (lag and chance) then |