1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-14 10:13:13 +02:00

Revert "commands.lua update 2020"

This reverts commit d0dcf301d2.
This commit is contained in:
James Gillham 2020-09-21 19:34:51 +01:00
parent d0dcf301d2
commit 00aa2c51c9

View File

@ -102,38 +102,6 @@ Command.add(
abort 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 = {} local Public = {}
function Public.control(config) function Public.control(config)