mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-31 12:22:36 +01:00
Make sure that users' RoomUnit is removed upon exiting
This commit is contained in:
parent
25d8ffba96
commit
e21b4ceced
@ -617,7 +617,7 @@ public class RoomManager {
|
||||
|
||||
habbo.getRoomUnit().setInRoom(true);
|
||||
if (habbo.getHabboInfo().getCurrentRoom() != room && habbo.getHabboInfo().getCurrentRoom() != null) {
|
||||
habbo.getHabboInfo().getCurrentRoom().removeHabbo(habbo);
|
||||
habbo.getHabboInfo().getCurrentRoom().removeHabbo(habbo, true);
|
||||
} else if (!habbo.getHabboStats().blockFollowing && habbo.getHabboInfo().getCurrentRoom() == null) {
|
||||
habbo.getMessenger().connectionChanged(habbo, true, true);
|
||||
}
|
||||
@ -1503,7 +1503,7 @@ public class RoomManager {
|
||||
|
||||
if (habbo != null) {
|
||||
if (habbo.getHabboInfo().getCurrentRoom() == room) {
|
||||
room.removeHabbo(habbo);
|
||||
room.removeHabbo(habbo, true);
|
||||
habbo.getClient().sendResponse(new RoomEnterErrorComposer(RoomEnterErrorComposer.ROOM_ERROR_BANNED));
|
||||
}
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ class TeleportInteraction extends Thread {
|
||||
|
||||
if (this.room != this.targetRoom) {
|
||||
Emulator.getGameEnvironment().getRoomManager().logExit(this.client.getHabbo());
|
||||
this.room.removeHabbo(this.client.getHabbo());
|
||||
this.room.removeHabbo(this.client.getHabbo(), true);
|
||||
Emulator.getGameEnvironment().getRoomManager().enterRoom(this.client.getHabbo(), this.targetRoom);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user