From 67cff0a2561d88af61869f6ec325aa7141ae7a2c Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Sun, 11 Mar 2018 14:17:44 +0000 Subject: [PATCH] Update last player server position upon teleport. --- .../gameserver/model/actor/instance/L2PcInstance.java | 4 ++++ .../gameserver/model/actor/instance/L2PcInstance.java | 4 ++++ .../gameserver/model/actor/instance/L2PcInstance.java | 4 ++++ .../gameserver/model/actor/instance/L2PcInstance.java | 4 ++++ .../gameserver/model/actor/instance/L2PcInstance.java | 4 ++++ .../gameserver/model/actor/instance/L2PcInstance.java | 4 ++++ .../gameserver/model/actor/instance/L2PcInstance.java | 4 ++++ 7 files changed, 28 insertions(+) diff --git a/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/model/actor/instance/L2PcInstance.java b/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/model/actor/instance/L2PcInstance.java index ae87650510..82d653586e 100644 --- a/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/model/actor/instance/L2PcInstance.java +++ b/L2J_Mobius_1.0_Ertheia/java/com/l2jmobius/gameserver/model/actor/instance/L2PcInstance.java @@ -10311,6 +10311,10 @@ public final class L2PcInstance extends L2Playable { getAirShip().sendInfo(this); } + else // Update last player position upon teleport. + { + setLastServerPosition(getX(), getY(), getZ()); + } // Force a revalidation revalidateZone(true); diff --git a/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/actor/instance/L2PcInstance.java b/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/actor/instance/L2PcInstance.java index 32be627917..5db7329646 100644 --- a/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/actor/instance/L2PcInstance.java +++ b/L2J_Mobius_2.5_Underground/java/com/l2jmobius/gameserver/model/actor/instance/L2PcInstance.java @@ -10318,6 +10318,10 @@ public final class L2PcInstance extends L2Playable { getAirShip().sendInfo(this); } + else // Update last player position upon teleport. + { + setLastServerPosition(getX(), getY(), getZ()); + } // Force a revalidation revalidateZone(true); diff --git a/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/actor/instance/L2PcInstance.java b/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/actor/instance/L2PcInstance.java index 5b59cc34a0..113660bd9d 100644 --- a/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/actor/instance/L2PcInstance.java +++ b/L2J_Mobius_3.0_Helios/java/com/l2jmobius/gameserver/model/actor/instance/L2PcInstance.java @@ -10328,6 +10328,10 @@ public final class L2PcInstance extends L2Playable { getAirShip().sendInfo(this); } + else // Update last player position upon teleport. + { + setLastServerPosition(getX(), getY(), getZ()); + } // Force a revalidation revalidateZone(true); diff --git a/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/model/actor/instance/L2PcInstance.java b/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/model/actor/instance/L2PcInstance.java index cf7460d227..46287f0b10 100644 --- a/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/model/actor/instance/L2PcInstance.java +++ b/L2J_Mobius_4.0_GrandCrusade/java/com/l2jmobius/gameserver/model/actor/instance/L2PcInstance.java @@ -10321,6 +10321,10 @@ public final class L2PcInstance extends L2Playable { getAirShip().sendInfo(this); } + else // Update last player position upon teleport. + { + setLastServerPosition(getX(), getY(), getZ()); + } // Force a revalidation revalidateZone(true); diff --git a/L2J_Mobius_CT_2.6_HighFive/java/com/l2jmobius/gameserver/model/actor/instance/L2PcInstance.java b/L2J_Mobius_CT_2.6_HighFive/java/com/l2jmobius/gameserver/model/actor/instance/L2PcInstance.java index cf460eb510..5b3728b0d7 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/com/l2jmobius/gameserver/model/actor/instance/L2PcInstance.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/com/l2jmobius/gameserver/model/actor/instance/L2PcInstance.java @@ -10656,6 +10656,10 @@ public final class L2PcInstance extends L2Playable { getAirShip().sendInfo(this); } + else // Update last player position upon teleport. + { + setLastServerPosition(getX(), getY(), getZ()); + } // Force a revalidation revalidateZone(true); diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/actor/instance/L2PcInstance.java b/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/actor/instance/L2PcInstance.java index a5358fec69..8b9ceb650b 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/actor/instance/L2PcInstance.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/com/l2jmobius/gameserver/model/actor/instance/L2PcInstance.java @@ -10256,6 +10256,10 @@ public final class L2PcInstance extends L2Playable { getAirShip().sendInfo(this); } + else // Update last player position upon teleport. + { + setLastServerPosition(getX(), getY(), getZ()); + } // Force a revalidation revalidateZone(true); diff --git a/L2J_Mobius_Classic_2.0_Zaken/java/com/l2jmobius/gameserver/model/actor/instance/L2PcInstance.java b/L2J_Mobius_Classic_2.0_Zaken/java/com/l2jmobius/gameserver/model/actor/instance/L2PcInstance.java index a5358fec69..8b9ceb650b 100644 --- a/L2J_Mobius_Classic_2.0_Zaken/java/com/l2jmobius/gameserver/model/actor/instance/L2PcInstance.java +++ b/L2J_Mobius_Classic_2.0_Zaken/java/com/l2jmobius/gameserver/model/actor/instance/L2PcInstance.java @@ -10256,6 +10256,10 @@ public final class L2PcInstance extends L2Playable { getAirShip().sendInfo(this); } + else // Update last player position upon teleport. + { + setLastServerPosition(getX(), getY(), getZ()); + } // Force a revalidation revalidateZone(true);