1
0
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:
Gerkiz 2020-05-01 01:06:22 +02:00
parent d3e18890b0
commit f08f46d253

View File

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