1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-04-13 11:30:40 +02:00

Merge pull request #108 from ComfyFactory/mtn_v3_fix

minor tweaks to mtn v3
This commit is contained in:
Gerkiz 2021-08-21 12:48:09 +02:00 committed by GitHub
commit e5dd5d8be5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,8 +101,7 @@ commands.add_command(
local player = game.player
local param = tonumber(cmd.parameter)
if player then
if player ~= nil then
if player and player.valid then
p = player.print
if not player.admin then
p("[ERROR] You're not admin!", Color.fail)
@ -119,7 +118,6 @@ commands.add_command(
Task.set_queue_speed(param)
end
end
end
)
commands.add_command(
@ -164,8 +162,7 @@ commands.add_command(
local p
local player = game.player
if player then
if player ~= nil then
if player and player.valid then
p = player.print
if not player.admin then
p("[ERROR] You're not admin!", Color.fail)
@ -177,5 +174,4 @@ commands.add_command(
p(Task.get_queue_speed())
end
end
end
)