Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Morningstar
Arcturus Morningstar
Commits
db25a6d8
Commit
db25a6d8
authored
Mar 05, 2021
by
Snaiker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix
parent
4cd0b8bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
src/main/java/com/eu/habbo/habbohotel/rooms/RoomManager.java
src/main/java/com/eu/habbo/habbohotel/rooms/RoomManager.java
+6
-3
No files found.
src/main/java/com/eu/habbo/habbohotel/rooms/RoomManager.java
View file @
db25a6d8
...
...
@@ -1176,11 +1176,14 @@ public class RoomManager {
continue
;
Habbo
friend
=
Emulator
.
getGameEnvironment
().
getHabboManager
().
getHabbo
(
buddy
.
getId
());
if
(
friend
==
null
)
continue
;
if
(
friend
==
null
||
friend
.
getHabboInfo
().
getCurrentRoom
()
==
null
)
Room
friendRoom
=
friend
.
getHabboInfo
().
getCurrentRoom
();
if
(
friendRoom
==
null
||
rooms
.
contains
(
friendRoom
))
continue
;
rooms
.
add
(
friend
.
getHabboInfo
().
getCurrent
Room
()
);
rooms
.
add
(
friendRoom
);
}
Collections
.
sort
(
rooms
);
...
...
@@ -1313,7 +1316,7 @@ public class RoomManager {
if
(
friend
==
null
||
friend
.
getHabboInfo
()
==
null
)
continue
;
Room
room
=
friend
.
getHabboInfo
().
getCurrentRoom
();
if
(
room
!=
null
)
rooms
.
add
(
room
);
if
(
room
!=
null
&&
!
rooms
.
contains
(
room
)
)
rooms
.
add
(
room
);
if
(
rooms
.
size
()
>=
limit
)
break
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment