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:
parent
11038fcda2
commit
3876402e87
@ -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']
|
||||
|
Loading…
Reference in New Issue
Block a user