mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-31 04:12:37 +01:00
Remove RoomUnit if one exists already
This commit is contained in:
parent
e21b4ceced
commit
d8308a25c1
@ -577,6 +577,8 @@ public class RoomManager {
|
||||
|
||||
if (habbo.getRoomUnit() != null) {
|
||||
habbo.getRoomUnit().setRoom(null);
|
||||
habbo.getRoomUnit().getCurrentLocation().removeUnit(habbo.getRoomUnit());
|
||||
habbo.getRoomUnit().getRoom().sendComposer(new RoomUserRemoveComposer(habbo.getRoomUnit()).compose());
|
||||
}
|
||||
|
||||
habbo.setRoomUnit(new RoomUnit());
|
||||
|
Loading…
x
Reference in New Issue
Block a user