Unset return warp only if we are on shipworld
This commit is contained in:
parent
d1e478b6ef
commit
afd93fea99
@ -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) {
|
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))
|
client.returnWarp = WarpAction.World(world.worldID, SpawnTarget.Position(playerEntity.position))
|
||||||
} else if (setReturnWarp) {
|
} else if (setReturnWarp && world.worldID is WorldID.ShipWorld) {
|
||||||
client.returnWarp = null
|
client.returnWarp = null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user