diff --git a/modules/team_teleport.lua b/modules/team_teleport.lua index 9f17a19a..1038c5cf 100644 --- a/modules/team_teleport.lua +++ b/modules/team_teleport.lua @@ -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" }) @@ -226,4 +226,4 @@ end event.add(defines.events.on_gui_click, on_gui_click) event.add(defines.events.on_player_joined_game, on_player_joined_game) -event.add(defines.events.on_player_left_game, on_player_left_game) \ No newline at end of file +event.add(defines.events.on_player_left_game, on_player_left_game)