mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-29 08:28:39 +00:00
Don't attempt to dive into the current room the player is in
This commit is contained in:
parent
2b5c8fd782
commit
e447fff38f
1 changed files with 6 additions and 0 deletions
|
@ -70,6 +70,12 @@ public class RoomHelper
|
|||
rooms = rooms.Where(r => r.Slot.SlotType == slot.SlotType && r.Slot.SlotId == slot.SlotId).ToList();
|
||||
}
|
||||
|
||||
// Don't attempt to dive into the current room the player is in.
|
||||
if (user != null)
|
||||
{
|
||||
rooms = rooms.Where(r => !r.Players.Contains(user)).ToList();
|
||||
}
|
||||
|
||||
foreach (Room room in rooms)
|
||||
// Look for rooms looking for players before moving on to rooms that are idle.
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue