From 00aa2c51c9be2f38f862041a4e52a6b0cfbe14c6 Mon Sep 17 00:00:00 2001 From: James Gillham Date: Mon, 21 Sep 2020 19:34:51 +0100 Subject: [PATCH] Revert "commands.lua update 2020" This reverts commit d0dcf301d2aece4696a10368949ca5ea45009455. --- map_gen/maps/crash_site/commands.lua | 32 ---------------------------- 1 file changed, 32 deletions(-) diff --git a/map_gen/maps/crash_site/commands.lua b/map_gen/maps/crash_site/commands.lua index cd222018..ce599521 100644 --- a/map_gen/maps/crash_site/commands.lua +++ b/map_gen/maps/crash_site/commands.lua @@ -102,38 +102,6 @@ Command.add( abort ) -local function check_bitter(_, player) - player = player or server_player - if game.player.surface.count_entities_filtered{force= "enemy"} then - global_data.restarting = true - double_print('Restarting map by' .. player.name) - restart(_,player.name) - else - player.print('Cannot abort a restart that is not in progress.') - end -end - -Command.add( - 'crash-site-restart-check_bitter', - { - description = {'command_description.crash_site_restart_abort'}, - required_rank = Ranks.regular, - allowed_by_server = true - }, - check_bitter -) - -Command.add( - 'check_bitter', - { - description = {'command_description.crash_site_restart_abort'}, - required_rank = Ranks.regular, - allowed_by_server = true - }, - check_bitter -) - - local Public = {} function Public.control(config)