From 832848ac5bf262ea1065528ce96900e05b5aabf4 Mon Sep 17 00:00:00 2001 From: James Gillham Date: Wed, 12 May 2021 17:21:18 +0100 Subject: [PATCH] Set last user when connecting loader. --- features/redmew_qol.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/features/redmew_qol.lua b/features/redmew_qol.lua index 9e655bfc..8a5063df 100644 --- a/features/redmew_qol.lua +++ b/features/redmew_qol.lua @@ -592,6 +592,7 @@ if config.loaders then local direction = entity.direction local force = entity.force local surface = entity.surface + local last_user = entity.last_user entity.destroy({raise_destroy = true}) @@ -600,7 +601,8 @@ if config.loaders then position = position, direction = direction, type = input_type, - force = force + force = force, + player = last_user } if not new_entity then