From 4e80b1478088032819b1d406aec8a2b98a2ca557 Mon Sep 17 00:00:00 2001 From: MobiusDevelopment <8391001+MobiusDevelopment@users.noreply.github.com> Date: Thu, 16 Jun 2022 12:55:51 +0000 Subject: [PATCH] Creature X and Y coordinates should not be both set to 0. --- .../java/org/l2jmobius/gameserver/model/actor/Creature.java | 6 ++++++ .../java/org/l2jmobius/gameserver/model/actor/Creature.java | 6 ++++++ .../java/org/l2jmobius/gameserver/model/actor/Creature.java | 6 ++++++ .../java/org/l2jmobius/gameserver/model/actor/Creature.java | 6 ++++++ .../java/org/l2jmobius/gameserver/model/actor/Creature.java | 6 ++++++ .../java/org/l2jmobius/gameserver/model/actor/Creature.java | 6 ++++++ .../java/org/l2jmobius/gameserver/model/actor/Creature.java | 6 ++++++ .../java/org/l2jmobius/gameserver/model/actor/Creature.java | 6 ++++++ .../java/org/l2jmobius/gameserver/model/actor/Creature.java | 6 ++++++ .../java/org/l2jmobius/gameserver/model/actor/Creature.java | 6 ++++++ .../java/org/l2jmobius/gameserver/model/actor/Creature.java | 6 ++++++ .../java/org/l2jmobius/gameserver/model/actor/Creature.java | 6 ++++++ .../java/org/l2jmobius/gameserver/model/actor/Creature.java | 6 ++++++ .../java/org/l2jmobius/gameserver/model/actor/Creature.java | 6 ++++++ .../java/org/l2jmobius/gameserver/model/actor/Creature.java | 6 ++++++ .../java/org/l2jmobius/gameserver/model/actor/Creature.java | 6 ++++++ .../java/org/l2jmobius/gameserver/model/actor/Creature.java | 6 ++++++ .../java/org/l2jmobius/gameserver/model/actor/Creature.java | 6 ++++++ .../java/org/l2jmobius/gameserver/model/actor/Creature.java | 6 ++++++ .../java/org/l2jmobius/gameserver/model/actor/Creature.java | 6 ++++++ .../java/org/l2jmobius/gameserver/model/actor/Creature.java | 6 ++++++ .../java/org/l2jmobius/gameserver/model/actor/Creature.java | 6 ++++++ .../java/org/l2jmobius/gameserver/model/actor/Creature.java | 6 ++++++ .../java/org/l2jmobius/gameserver/model/actor/Creature.java | 6 ++++++ .../java/org/l2jmobius/gameserver/model/actor/Creature.java | 6 ++++++ .../java/org/l2jmobius/gameserver/model/actor/Creature.java | 6 ++++++ 26 files changed, 156 insertions(+) diff --git a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/Creature.java index 9436455cc6..a1c098ee7a 100644 --- a/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_01.0_Ertheia/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -5410,6 +5410,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe @Override public void setXYZ(int newX, int newY, int newZ) { + // 0, 0 is not a valid location. + if ((newX == 0) && (newY == 0)) + { + return; + } + final ZoneRegion oldZoneRegion = ZoneManager.getInstance().getRegion(this); final ZoneRegion newZoneRegion = ZoneManager.getInstance().getRegion(newX, newY); diff --git a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/Creature.java index 9436455cc6..a1c098ee7a 100644 --- a/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_02.5_Underground/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -5410,6 +5410,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe @Override public void setXYZ(int newX, int newY, int newZ) { + // 0, 0 is not a valid location. + if ((newX == 0) && (newY == 0)) + { + return; + } + final ZoneRegion oldZoneRegion = ZoneManager.getInstance().getRegion(this); final ZoneRegion newZoneRegion = ZoneManager.getInstance().getRegion(newX, newY); diff --git a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/Creature.java index 9436455cc6..a1c098ee7a 100644 --- a/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_03.0_Helios/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -5410,6 +5410,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe @Override public void setXYZ(int newX, int newY, int newZ) { + // 0, 0 is not a valid location. + if ((newX == 0) && (newY == 0)) + { + return; + } + final ZoneRegion oldZoneRegion = ZoneManager.getInstance().getRegion(this); final ZoneRegion newZoneRegion = ZoneManager.getInstance().getRegion(newX, newY); diff --git a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/Creature.java index 9436455cc6..a1c098ee7a 100644 --- a/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_04.0_GrandCrusade/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -5410,6 +5410,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe @Override public void setXYZ(int newX, int newY, int newZ) { + // 0, 0 is not a valid location. + if ((newX == 0) && (newY == 0)) + { + return; + } + final ZoneRegion oldZoneRegion = ZoneManager.getInstance().getRegion(this); final ZoneRegion newZoneRegion = ZoneManager.getInstance().getRegion(newX, newY); diff --git a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/Creature.java index 1e014d80ef..eca38e73da 100644 --- a/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_05.0_Salvation/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -5419,6 +5419,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe @Override public void setXYZ(int newX, int newY, int newZ) { + // 0, 0 is not a valid location. + if ((newX == 0) && (newY == 0)) + { + return; + } + final ZoneRegion oldZoneRegion = ZoneManager.getInstance().getRegion(this); final ZoneRegion newZoneRegion = ZoneManager.getInstance().getRegion(newX, newY); diff --git a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/Creature.java index 1e014d80ef..eca38e73da 100644 --- a/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_05.5_EtinasFate/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -5419,6 +5419,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe @Override public void setXYZ(int newX, int newY, int newZ) { + // 0, 0 is not a valid location. + if ((newX == 0) && (newY == 0)) + { + return; + } + final ZoneRegion oldZoneRegion = ZoneManager.getInstance().getRegion(this); final ZoneRegion newZoneRegion = ZoneManager.getInstance().getRegion(newX, newY); diff --git a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/Creature.java index 1e014d80ef..eca38e73da 100644 --- a/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_06.0_Fafurion/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -5419,6 +5419,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe @Override public void setXYZ(int newX, int newY, int newZ) { + // 0, 0 is not a valid location. + if ((newX == 0) && (newY == 0)) + { + return; + } + final ZoneRegion oldZoneRegion = ZoneManager.getInstance().getRegion(this); final ZoneRegion newZoneRegion = ZoneManager.getInstance().getRegion(newX, newY); diff --git a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/Creature.java index c369b992e9..98f6b2ddec 100644 --- a/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_07.0_PreludeOfWar/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -5418,6 +5418,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe @Override public void setXYZ(int newX, int newY, int newZ) { + // 0, 0 is not a valid location. + if ((newX == 0) && (newY == 0)) + { + return; + } + final ZoneRegion oldZoneRegion = ZoneManager.getInstance().getRegion(this); final ZoneRegion newZoneRegion = ZoneManager.getInstance().getRegion(newX, newY); diff --git a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/Creature.java index 33acd30945..3d3dbd26b5 100644 --- a/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_08.2_Homunculus/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -5418,6 +5418,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe @Override public void setXYZ(int newX, int newY, int newZ) { + // 0, 0 is not a valid location. + if ((newX == 0) && (newY == 0)) + { + return; + } + final ZoneRegion oldZoneRegion = ZoneManager.getInstance().getRegion(this); final ZoneRegion newZoneRegion = ZoneManager.getInstance().getRegion(newX, newY); diff --git a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/Creature.java index 33acd30945..3d3dbd26b5 100644 --- a/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_09.2_ReturnOfTheQueenAnt/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -5418,6 +5418,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe @Override public void setXYZ(int newX, int newY, int newZ) { + // 0, 0 is not a valid location. + if ((newX == 0) && (newY == 0)) + { + return; + } + final ZoneRegion oldZoneRegion = ZoneManager.getInstance().getRegion(this); final ZoneRegion newZoneRegion = ZoneManager.getInstance().getRegion(newX, newY); diff --git a/L2J_Mobius_10.1_MasterClass/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_10.1_MasterClass/java/org/l2jmobius/gameserver/model/actor/Creature.java index a410117aae..21d0f44b0b 100644 --- a/L2J_Mobius_10.1_MasterClass/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_10.1_MasterClass/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -5418,6 +5418,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe @Override public void setXYZ(int newX, int newY, int newZ) { + // 0, 0 is not a valid location. + if ((newX == 0) && (newY == 0)) + { + return; + } + final ZoneRegion oldZoneRegion = ZoneManager.getInstance().getRegion(this); final ZoneRegion newZoneRegion = ZoneManager.getInstance().getRegion(newX, newY); diff --git a/L2J_Mobius_10.2_MasterClass/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_10.2_MasterClass/java/org/l2jmobius/gameserver/model/actor/Creature.java index a410117aae..21d0f44b0b 100644 --- a/L2J_Mobius_10.2_MasterClass/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_10.2_MasterClass/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -5418,6 +5418,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe @Override public void setXYZ(int newX, int newY, int newZ) { + // 0, 0 is not a valid location. + if ((newX == 0) && (newY == 0)) + { + return; + } + final ZoneRegion oldZoneRegion = ZoneManager.getInstance().getRegion(this); final ZoneRegion newZoneRegion = ZoneManager.getInstance().getRegion(newX, newY); diff --git a/L2J_Mobius_CT_0_Interlude/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_CT_0_Interlude/java/org/l2jmobius/gameserver/model/actor/Creature.java index f39225320c..1b6ebea38d 100644 --- a/L2J_Mobius_CT_0_Interlude/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_CT_0_Interlude/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -6566,6 +6566,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe @Override public void setXYZ(int newX, int newY, int newZ) { + // 0, 0 is not a valid location. + if ((newX == 0) && (newY == 0)) + { + return; + } + final ZoneRegion oldZoneRegion = ZoneManager.getInstance().getRegion(this); final ZoneRegion newZoneRegion = ZoneManager.getInstance().getRegion(newX, newY); diff --git a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/Creature.java index 0387de9fb0..385a496afc 100644 --- a/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_CT_2.4_Epilogue/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -6805,6 +6805,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe @Override public void setXYZ(int newX, int newY, int newZ) { + // 0, 0 is not a valid location. + if ((newX == 0) && (newY == 0)) + { + return; + } + final ZoneRegion oldZoneRegion = ZoneManager.getInstance().getRegion(this); final ZoneRegion newZoneRegion = ZoneManager.getInstance().getRegion(newX, newY); diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/Creature.java index 90be78dfe1..1be8a76494 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -6807,6 +6807,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe @Override public void setXYZ(int newX, int newY, int newZ) { + // 0, 0 is not a valid location. + if ((newX == 0) && (newY == 0)) + { + return; + } + final ZoneRegion oldZoneRegion = ZoneManager.getInstance().getRegion(this); final ZoneRegion newZoneRegion = ZoneManager.getInstance().getRegion(newX, newY); diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/Creature.java index 725419116c..411c541e6e 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -5403,6 +5403,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe @Override public void setXYZ(int newX, int newY, int newZ) { + // 0, 0 is not a valid location. + if ((newX == 0) && (newY == 0)) + { + return; + } + final ZoneRegion oldZoneRegion = ZoneManager.getInstance().getRegion(this); final ZoneRegion newZoneRegion = ZoneManager.getInstance().getRegion(newX, newY); diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/Creature.java index 725419116c..411c541e6e 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -5403,6 +5403,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe @Override public void setXYZ(int newX, int newY, int newZ) { + // 0, 0 is not a valid location. + if ((newX == 0) && (newY == 0)) + { + return; + } + final ZoneRegion oldZoneRegion = ZoneManager.getInstance().getRegion(this); final ZoneRegion newZoneRegion = ZoneManager.getInstance().getRegion(newX, newY); diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/Creature.java index c39a8a5c3b..11c2803711 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -5412,6 +5412,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe @Override public void setXYZ(int newX, int newY, int newZ) { + // 0, 0 is not a valid location. + if ((newX == 0) && (newY == 0)) + { + return; + } + final ZoneRegion oldZoneRegion = ZoneManager.getInstance().getRegion(this); final ZoneRegion newZoneRegion = ZoneManager.getInstance().getRegion(newX, newY); diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/Creature.java index 1164a91637..5e1133e929 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -5437,6 +5437,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe @Override public void setXYZ(int newX, int newY, int newZ) { + // 0, 0 is not a valid location. + if ((newX == 0) && (newY == 0)) + { + return; + } + final ZoneRegion oldZoneRegion = ZoneManager.getInstance().getRegion(this); final ZoneRegion newZoneRegion = ZoneManager.getInstance().getRegion(newX, newY); diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/Creature.java index 1164a91637..5e1133e929 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -5437,6 +5437,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe @Override public void setXYZ(int newX, int newY, int newZ) { + // 0, 0 is not a valid location. + if ((newX == 0) && (newY == 0)) + { + return; + } + final ZoneRegion oldZoneRegion = ZoneManager.getInstance().getRegion(this); final ZoneRegion newZoneRegion = ZoneManager.getInstance().getRegion(newX, newY); diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/Creature.java index 3eadbc4b51..0419daa98d 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -5436,6 +5436,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe @Override public void setXYZ(int newX, int newY, int newZ) { + // 0, 0 is not a valid location. + if ((newX == 0) && (newY == 0)) + { + return; + } + final ZoneRegion oldZoneRegion = ZoneManager.getInstance().getRegion(this); final ZoneRegion newZoneRegion = ZoneManager.getInstance().getRegion(newX, newY); diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/Creature.java index 725419116c..411c541e6e 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -5403,6 +5403,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe @Override public void setXYZ(int newX, int newY, int newZ) { + // 0, 0 is not a valid location. + if ((newX == 0) && (newY == 0)) + { + return; + } + final ZoneRegion oldZoneRegion = ZoneManager.getInstance().getRegion(this); final ZoneRegion newZoneRegion = ZoneManager.getInstance().getRegion(newX, newY); diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/Creature.java index 3734281f56..361b007b24 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -5449,6 +5449,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe @Override public void setXYZ(int newX, int newY, int newZ) { + // 0, 0 is not a valid location. + if ((newX == 0) && (newY == 0)) + { + return; + } + final ZoneRegion oldZoneRegion = ZoneManager.getInstance().getRegion(this); final ZoneRegion newZoneRegion = ZoneManager.getInstance().getRegion(newX, newY); diff --git a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/Creature.java index 5cad7189c3..da5489ff61 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -5456,6 +5456,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe @Override public void setXYZ(int newX, int newY, int newZ) { + // 0, 0 is not a valid location. + if ((newX == 0) && (newY == 0)) + { + return; + } + final ZoneRegion oldZoneRegion = ZoneManager.getInstance().getRegion(this); final ZoneRegion newZoneRegion = ZoneManager.getInstance().getRegion(newX, newY); diff --git a/L2J_Mobius_Essence_6.1_BattleChronicle/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_Essence_6.1_BattleChronicle/java/org/l2jmobius/gameserver/model/actor/Creature.java index 5aa36e1e1f..e9755240f3 100644 --- a/L2J_Mobius_Essence_6.1_BattleChronicle/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_Essence_6.1_BattleChronicle/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -5456,6 +5456,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe @Override public void setXYZ(int newX, int newY, int newZ) { + // 0, 0 is not a valid location. + if ((newX == 0) && (newY == 0)) + { + return; + } + final ZoneRegion oldZoneRegion = ZoneManager.getInstance().getRegion(this); final ZoneRegion newZoneRegion = ZoneManager.getInstance().getRegion(newX, newY); diff --git a/L2J_Mobius_Essence_6.2_Vanguard/java/org/l2jmobius/gameserver/model/actor/Creature.java b/L2J_Mobius_Essence_6.2_Vanguard/java/org/l2jmobius/gameserver/model/actor/Creature.java index 0fda9c8db7..7cf8a5ad06 100644 --- a/L2J_Mobius_Essence_6.2_Vanguard/java/org/l2jmobius/gameserver/model/actor/Creature.java +++ b/L2J_Mobius_Essence_6.2_Vanguard/java/org/l2jmobius/gameserver/model/actor/Creature.java @@ -5466,6 +5466,12 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe @Override public void setXYZ(int newX, int newY, int newZ) { + // 0, 0 is not a valid location. + if ((newX == 0) && (newY == 0)) + { + return; + } + final ZoneRegion oldZoneRegion = ZoneManager.getInstance().getRegion(this); final ZoneRegion newZoneRegion = ZoneManager.getInstance().getRegion(newX, newY);