mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-18 23:46:28 +01:00
Fix teleport invisible bug
This commit is contained in:
parent
860afa0d64
commit
ce11bf8849
@ -2611,7 +2611,7 @@ public class Room implements Comparable<Room>, ISerialize, Runnable {
|
||||
habbo.getRoomUnit().getCurrentLocation().removeUnit(habbo.getRoomUnit());
|
||||
}
|
||||
|
||||
if (sendRemovePacket && habbo.getRoomUnit() != null) {
|
||||
if (sendRemovePacket && habbo.getRoomUnit() != null && !habbo.getRoomUnit().isTeleporting) {
|
||||
this.sendComposer(new RoomUserRemoveComposer(habbo.getRoomUnit()).compose());
|
||||
}
|
||||
|
||||
|
@ -586,11 +586,11 @@ 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());
|
||||
RoomUnit existingRoom = habbo.getRoomUnit();
|
||||
if (existingRoom.getRoom() != null) {
|
||||
if (existingRoom.getCurrentLocation() != null)
|
||||
existingRoom.getCurrentLocation().removeUnit(existingRoom);
|
||||
existingRoom.getRoom().sendComposer(new RoomUserRemoveComposer(existingRoom).compose());
|
||||
}
|
||||
habbo.getRoomUnit().setRoom(null);
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ class TeleportActionThree implements Runnable {
|
||||
this.client.getHabbo().getRoomUnit().setRotation(RoomUserRotation.values()[targetTeleport.getRotation() % 8]);
|
||||
|
||||
if (targetRoom != this.room) {
|
||||
this.room.removeHabbo(this.client.getHabbo(), true);
|
||||
this.room.removeHabbo(this.client.getHabbo(), false);
|
||||
Emulator.getGameEnvironment().getRoomManager().enterRoom(this.client.getHabbo(), targetRoom.getId(), "", Emulator.getConfig().getBoolean("hotel.teleport.locked.allowed"), teleportLocation);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user