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:
parent
6e2bd811d9
commit
d85e1011b8
@ -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)
|
||||
event.add(defines.events.on_player_left_game, on_player_left_game)
|
||||
|
Loading…
Reference in New Issue
Block a user