From afd93fea99cfcd6e3300e933d58a635ce8eccfe2 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Mon, 29 Apr 2024 19:13:42 +0700 Subject: [PATCH] Unset return warp only if we are on shipworld --- .../dbotthepony/kstarbound/server/world/ServerWorldTracker.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/kstarbound/server/world/ServerWorldTracker.kt b/src/main/kotlin/ru/dbotthepony/kstarbound/server/world/ServerWorldTracker.kt index 9bb2c236..c50132a2 100644 --- a/src/main/kotlin/ru/dbotthepony/kstarbound/server/world/ServerWorldTracker.kt +++ b/src/main/kotlin/ru/dbotthepony/kstarbound/server/world/ServerWorldTracker.kt @@ -391,7 +391,7 @@ class ServerWorldTracker(val world: ServerWorld, val client: ServerConnection, p if (playerEntity != null && (world.worldID is WorldID.Celestial || world.worldID is WorldID.ShipWorld && world.worldID.uuid == client.uuid) && setReturnWarp) { client.returnWarp = WarpAction.World(world.worldID, SpawnTarget.Position(playerEntity.position)) - } else if (setReturnWarp) { + } else if (setReturnWarp && world.worldID is WorldID.ShipWorld) { client.returnWarp = null }