mirror of
https://github.com/Refactorio/RedMew.git
synced 2024-12-12 10:04:40 +02:00
Fix linting, add comments
This commit is contained in:
parent
63100e0590
commit
018cab89b6
@ -241,8 +241,12 @@ local function teleport_command(args, player)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Event registrations
|
||||||
|
|
||||||
Event.add(defines.events.on_built_entity, built_entity)
|
Event.add(defines.events.on_built_entity, built_entity)
|
||||||
|
|
||||||
|
-- Command registrations
|
||||||
|
|
||||||
Command.add(
|
Command.add(
|
||||||
'a',
|
'a',
|
||||||
{
|
{
|
||||||
|
@ -143,7 +143,7 @@ local function server_time(_, player)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local function search_command(arguments, player)
|
local function search_command(arguments)
|
||||||
local keyword = arguments.keyword
|
local keyword = arguments.keyword
|
||||||
local p = Game.player_print
|
local p = Game.player_print
|
||||||
if #keyword < 2 then
|
if #keyword < 2 then
|
||||||
@ -191,7 +191,7 @@ local function search_command(arguments, player)
|
|||||||
p(format('-------- Page %d / %d --------', page, pages))
|
p(format('-------- Page %d / %d --------', page, pages))
|
||||||
end
|
end
|
||||||
|
|
||||||
----------------------------------------------------------------------------------------
|
-- Command registrations
|
||||||
|
|
||||||
Command.add(
|
Command.add(
|
||||||
'kill',
|
'kill',
|
||||||
|
Loading…
Reference in New Issue
Block a user