mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-18 23:46:28 +01:00
Enabled fast click walk
This commit is contained in:
parent
a56abbed35
commit
83d1436983
@ -19,6 +19,8 @@ public class MoveAvatarEvent extends MessageHandler {
|
|||||||
int x = this.packet.readInt();
|
int x = this.packet.readInt();
|
||||||
int y = this.packet.readInt();
|
int y = this.packet.readInt();
|
||||||
|
|
||||||
|
log.info("CLICKED ON TILE [x]: {} [y]: {}", x, y);
|
||||||
|
|
||||||
Habbo habbo = this.client.getHabbo();
|
Habbo habbo = this.client.getHabbo();
|
||||||
|
|
||||||
if(habbo == null) {
|
if(habbo == null) {
|
||||||
@ -37,7 +39,8 @@ public class MoveAvatarEvent extends MessageHandler {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (roomHabbo.getCurrentPosition().equals(x,y)) {
|
|
||||||
|
if (roomHabbo.getCurrentPosition().equals(x,y) && roomHabbo.isAtGoal()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -60,7 +63,6 @@ public class MoveAvatarEvent extends MessageHandler {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
log.info("CLICKED ON TILE [x]: {} [y]: {}", tile.getX(), tile.getY());
|
|
||||||
roomHabbo.walkTo(tile);
|
roomHabbo.walkTo(tile);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user