mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-03-03 14:53:01 +02:00
Blueprint remove crash hotfix
This commit is contained in:
parent
5d893fb093
commit
a94fc36cf4
@ -29,7 +29,7 @@ end
|
||||
|
||||
|
||||
local function on_player_mined_item(event)
|
||||
if event.entity.force.name ~= "enemy" then
|
||||
if event.entity.force.name ~= "enemy" and event.entity.force.name ~= "neutral" and event.entity.name ~= "entity-ghost" then
|
||||
local ghost = game.surfaces[1].create_entity{name = "entity-ghost", position = event.entity.position, inner_name = event.entity.name, expires = false, force = "enemy"}
|
||||
ghost.last_user = event.player_index
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user