Prevent stopping key movement when facing doors.

This commit is contained in:
MobiusDevelopment
2023-02-01 00:03:24 +02:00
parent be9d69e746
commit 40bdaf545d
31 changed files with 31 additions and 31 deletions

View File

@ -89,7 +89,7 @@ public class MoveBackwardToLocation implements ClientPacket
}
// Check for possible door logout and move over exploit. Also checked at ValidatePosition.
if (DoorData.getInstance().checkIfDoorsBetween(player.getX(), player.getY(), player.getZ(), _targetX, _targetY, _targetZ, player.getInstanceWorld(), false))
if (DoorData.getInstance().checkIfDoorsBetween(player.getLastServerPosition(), player.getLocation(), player.getInstanceWorld()))
{
player.stopMove(player.getLastServerPosition());
player.sendPacket(ActionFailed.STATIC_PACKET);