Creature X and Y coordinates should not be both set to 0.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
+6
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
+6
@@ -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);
|
||||
|
||||
|
||||
+6
@@ -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);
|
||||
|
||||
|
||||
+6
@@ -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);
|
||||
|
||||
|
||||
+6
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
+6
@@ -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);
|
||||
|
||||
|
||||
+6
@@ -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);
|
||||
|
||||
|
||||
+6
@@ -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);
|
||||
|
||||
|
||||
+6
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user