1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-08 00:39:30 +02:00

Update team_teleport.lua

player >> character
This commit is contained in:
Gerkiz 2019-05-05 21:42:02 +02:00 committed by GitHub
parent 6e2bd811d9
commit d85e1011b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@ local event = require 'utils.event'
local function teleport_player(surface, source_player, position)
local materializing_characters = source_player.surface.find_entities_filtered({
name = "player",
name = "character",
area = {{position.x - 1, position.y - 1},{position.x + 1, position.y + 1}},
force = "neutral"
})