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

Merge pull request #1211 from grilledham/loader_last_user

Set last user when connecting loader.
This commit is contained in:
grilledham 2021-05-12 17:24:09 +01:00 committed by GitHub
commit 90f5144016
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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