mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-11 09:00:23 -07:00
Fix player following
This commit is contained in:
parent
bd12800cca
commit
fa604d04bc
1 changed files with 1 additions and 1 deletions
|
|
@ -207,7 +207,7 @@ public abstract class MovementPulse extends Pulse {
|
||||||
previousMoverLoc = Location.create(ml);
|
previousMoverLoc = Location.create(ml);
|
||||||
previousMoveTime = getWorldTicks();
|
previousMoveTime = getWorldTicks();
|
||||||
}
|
}
|
||||||
else if (getWorldTicks() - previousMoveTime >= 25) {
|
else if (getWorldTicks() - previousMoveTime >= 25 && !(destination instanceof Player)) {
|
||||||
if (mover instanceof Player) {
|
if (mover instanceof Player) {
|
||||||
((Player) mover).getPacketDispatch().sendMessage("I can't reach that.");
|
((Player) mover).getPacketDispatch().sendMessage("I can't reach that.");
|
||||||
PacketRepository.send(ClearMinimapFlag.class, new PlayerContext((Player) mover));
|
PacketRepository.send(ClearMinimapFlag.class, new PlayerContext((Player) mover));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue