1
0
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:
Matthew Heguy 2019-01-08 15:58:12 -05:00
parent 63100e0590
commit 018cab89b6
2 changed files with 6 additions and 2 deletions

View File

@ -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',
{ {

View File

@ -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',