Add raise_teleported flag to the teleport function calls

This commit is contained in:
Simon Brodtmann 2025-12-29 16:31:44 +01:00
parent 436c3262a4
commit 7e8ba99397
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ local function init_player(event)
if not player.character or not surface then return end 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() local main_inventory = player.character.get_main_inventory()
-- Add some starting items to player inventory -- Add some starting items to player inventory

View file

@ -45,7 +45,7 @@ local function teleport_player(player)
local nauvis = game.planets[storage.target_planet].surface local nauvis = game.planets[storage.target_planet].surface
if player.surface.name == "lignumis" then if player.surface.name == "lignumis" then
local position = nauvis.find_non_colliding_position("character", { 2, 2 }, 100, 1) or { 0, 0 } 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) chart_starting_area(nauvis, player)
end end
end end