From 3876402e876c26ae8a49d9995e5d16498f94561e Mon Sep 17 00:00:00 2001 From: SimonFlapse Date: Sun, 18 Nov 2018 21:23:19 +0100 Subject: [PATCH] Second attempt to fix server crash --- features/report.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/report.lua b/features/report.lua index a6063452..c74c3410 100644 --- a/features/report.lua +++ b/features/report.lua @@ -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']