mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-31 12:22:36 +01:00
Add delay to teleport tiles
This commit is contained in:
parent
c943cd016d
commit
775ec86974
@ -204,12 +204,16 @@ public class InteractionTeleport extends HabboItem {
|
||||
}
|
||||
|
||||
public void startTeleport(Room room, Habbo habbo) {
|
||||
this.startTeleport(room, habbo, 500);
|
||||
}
|
||||
|
||||
public void startTeleport(Room room, Habbo habbo, int delay) {
|
||||
if (habbo.getRoomUnit().isTeleporting)
|
||||
return;
|
||||
|
||||
this.roomUnitID = -1;
|
||||
habbo.getRoomUnit().isTeleporting = true;
|
||||
Emulator.getThreading().run(new TeleportActionOne(this, room, habbo.getClient()), 500);
|
||||
Emulator.getThreading().run(new TeleportActionOne(this, room, habbo.getClient()), delay);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -38,7 +38,7 @@ public class InteractionTeleportTile extends InteractionTeleport {
|
||||
|
||||
if (!habbo.getRoomUnit().isTeleporting) {
|
||||
habbo.getRoomUnit().setGoalLocation(habbo.getRoomUnit().getCurrentLocation());
|
||||
this.startTeleport(room, habbo);
|
||||
this.startTeleport(room, habbo, 1000);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user