mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-18 23:46:28 +01:00
Fix room enterng
This commit is contained in:
parent
d8308a25c1
commit
1714f54dc3
@ -576,9 +576,13 @@ public class RoomManager {
|
||||
habbo.getClient().sendResponse(new HideDoorbellComposer(""));
|
||||
|
||||
if (habbo.getRoomUnit() != null) {
|
||||
Room existingRoom = habbo.getRoomUnit().getRoom();
|
||||
if (existingRoom != null) {
|
||||
if (habbo.getRoomUnit().getCurrentLocation() != null)
|
||||
habbo.getRoomUnit().getCurrentLocation().removeUnit(habbo.getRoomUnit());
|
||||
habbo.getRoomUnit().getRoom().sendComposer(new RoomUserRemoveComposer(habbo.getRoomUnit()).compose());
|
||||
}
|
||||
habbo.getRoomUnit().setRoom(null);
|
||||
habbo.getRoomUnit().getCurrentLocation().removeUnit(habbo.getRoomUnit());
|
||||
habbo.getRoomUnit().getRoom().sendComposer(new RoomUserRemoveComposer(habbo.getRoomUnit()).compose());
|
||||
}
|
||||
|
||||
habbo.setRoomUnit(new RoomUnit());
|
||||
|
Loading…
Reference in New Issue
Block a user