mirror of
https://github.com/minetest-mods/i3.git
synced 2024-11-15 23:30:22 +01:00
Small fix
This commit is contained in:
parent
304f74c7a4
commit
4bc1bfee8b
11
init.lua
11
init.lua
|
@ -2780,12 +2780,15 @@ if rawget(_G, "awards") then
|
||||||
end
|
end
|
||||||
|
|
||||||
core.register_on_chatcommand(function(name, command, params)
|
core.register_on_chatcommand(function(name, command, params)
|
||||||
if find(command, "grant") or find(command, "revoke") then
|
if sub(command, 1, 5) == "grant" or sub(command, 1, 6) == "revoke" then
|
||||||
params = split(params, " ")
|
params = split(params, " ")
|
||||||
|
|
||||||
if params[2] and find(params[2], "creative") then
|
for _, v in ipairs(params) do
|
||||||
local data = pdata[name]
|
if find(v, "creative") then
|
||||||
reset_data(data)
|
local data = pdata[name]
|
||||||
|
reset_data(data)
|
||||||
|
break
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user