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

Second attempt to fix server crash

This commit is contained in:
SimonFlapse 2018-11-18 21:23:19 +01:00
parent 11038fcda2
commit 3876402e87

View File

@ -148,7 +148,7 @@ function Module.jail(target_player, player)
print = player.print
else
jailed_by = "script for causing too many collapses"
player.name = 'server'
player = {name = 'server'}
print = log
end
@ -211,7 +211,7 @@ function Module.unjail_player(cmd)
Utils.cant_run(cmd.name)
return
elseif not player then
player.name = 'Server'
player = {name = 'Server'}
end
-- Check if the target is valid (copied from the invoke command)
local target = cmd['parameter']