From 018cab89b622c25ad2e9bce871cc10abbfa40ff0 Mon Sep 17 00:00:00 2001 From: Matthew Heguy Date: Tue, 8 Jan 2019 15:58:12 -0500 Subject: [PATCH] Fix linting, add comments --- features/admin_commands.lua | 4 ++++ features/redmew_commands.lua | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/features/admin_commands.lua b/features/admin_commands.lua index f4a043b8..d3851ae8 100644 --- a/features/admin_commands.lua +++ b/features/admin_commands.lua @@ -241,8 +241,12 @@ local function teleport_command(args, player) end end +-- Event registrations + Event.add(defines.events.on_built_entity, built_entity) +-- Command registrations + Command.add( 'a', { diff --git a/features/redmew_commands.lua b/features/redmew_commands.lua index 8e051acc..ac055b7a 100644 --- a/features/redmew_commands.lua +++ b/features/redmew_commands.lua @@ -143,7 +143,7 @@ local function server_time(_, player) end end -local function search_command(arguments, player) +local function search_command(arguments) local keyword = arguments.keyword local p = Game.player_print if #keyword < 2 then @@ -191,7 +191,7 @@ local function search_command(arguments, player) p(format('-------- Page %d / %d --------', page, pages)) end ----------------------------------------------------------------------------------------- +-- Command registrations Command.add( 'kill',