1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-03-03 14:53:01 +02:00

Attempt to fix server crash on server jail/unjail

This commit is contained in:
SimonFlapse 2018-11-18 21:13:45 +01:00
parent 08b54e44af
commit 11038fcda2

View File

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