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:
commit
90f5144016
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user