mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-02-09 13:37:02 +02:00
comfylatron fix
if surface does not match, don't try to reach the player
This commit is contained in:
parent
d3e18890b0
commit
f08f46d253
@ -146,6 +146,8 @@ local function visit_player()
|
||||
if #players == 0 then return false end
|
||||
local player = players[math_random(1, #players)]
|
||||
|
||||
if player.surface ~= surface then return end
|
||||
|
||||
this.comfylatron.set_command({
|
||||
type = defines.command.go_to_location,
|
||||
destination_entity = player.character,
|
||||
|
Loading…
x
Reference in New Issue
Block a user