We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e208f1 commit 6592a0fCopy full SHA for 6592a0f
UI/ReturnToLobbyHelper.cs
@@ -174,7 +174,7 @@ public static void OnSessionCreated() {
174
175
if (foundEntity != null) {
176
// found it!
177
- Vector2 spawnPoint = room.Spawns.ClosestTo(foundEntity.Position + room.Position);
+ Vector2 spawnPoint = room.Spawns.ClosestTo(foundEntity.Position + new Vector2(foundEntity.Width, foundEntity.Height) / 2 + room.Position);
178
179
CollabModule.Instance.Session.LobbyRoom = room.Name;
180
CollabModule.Instance.Session.LobbySpawnPointX = spawnPoint.X;
0 commit comments