Add raise_teleported flag to the teleport function calls
This commit is contained in:
parent
436c3262a4
commit
7e8ba99397
2 changed files with 2 additions and 2 deletions
|
|
@ -15,7 +15,7 @@ local function init_player(event)
|
|||
|
||||
if not player.character or not surface then return end
|
||||
|
||||
player.teleport(surface.find_non_colliding_position("character", { 0, 0 }, 0, 1), "lignumis")
|
||||
player.teleport(surface.find_non_colliding_position("character", { 0, 0 }, 0, 1), "lignumis", true)
|
||||
local main_inventory = player.character.get_main_inventory()
|
||||
|
||||
-- Add some starting items to player inventory
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ local function teleport_player(player)
|
|||
local nauvis = game.planets[storage.target_planet].surface
|
||||
if player.surface.name == "lignumis" then
|
||||
local position = nauvis.find_non_colliding_position("character", { 2, 2 }, 100, 1) or { 0, 0 }
|
||||
player.teleport(position, storage.target_planet)
|
||||
player.teleport(position, storage.target_planet, true)
|
||||
chart_starting_area(nauvis, player)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue