Do not check for doors between if target is already a door.
This commit is contained in:
@@ -582,7 +582,7 @@ public class GeoEngine
|
|||||||
final int ty = target.getY();
|
final int ty = target.getY();
|
||||||
final int tz = target.getZ();
|
final int tz = target.getZ();
|
||||||
|
|
||||||
if (DoorData.getInstance().checkIfDoorsBetween(ox, oy, oz, tx, ty, tz, origin.getInstanceWorld(), false))
|
if (!target.isDoor() && DoorData.getInstance().checkIfDoorsBetween(ox, oy, oz, tx, ty, tz, origin.getInstanceWorld(), false))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@@ -582,7 +582,7 @@ public class GeoEngine
|
|||||||
final int ty = target.getY();
|
final int ty = target.getY();
|
||||||
final int tz = target.getZ();
|
final int tz = target.getZ();
|
||||||
|
|
||||||
if (DoorData.getInstance().checkIfDoorsBetween(ox, oy, oz, tx, ty, tz, origin.getInstanceWorld(), false))
|
if (!target.isDoor() && DoorData.getInstance().checkIfDoorsBetween(ox, oy, oz, tx, ty, tz, origin.getInstanceWorld(), false))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@@ -582,7 +582,7 @@ public class GeoEngine
|
|||||||
final int ty = target.getY();
|
final int ty = target.getY();
|
||||||
final int tz = target.getZ();
|
final int tz = target.getZ();
|
||||||
|
|
||||||
if (DoorData.getInstance().checkIfDoorsBetween(ox, oy, oz, tx, ty, tz, origin.getInstanceWorld(), false))
|
if (!target.isDoor() && DoorData.getInstance().checkIfDoorsBetween(ox, oy, oz, tx, ty, tz, origin.getInstanceWorld(), false))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@@ -580,7 +580,7 @@ public class GeoEngine
|
|||||||
final int ty = target.getY();
|
final int ty = target.getY();
|
||||||
final int tz = target.getZ();
|
final int tz = target.getZ();
|
||||||
|
|
||||||
if (DoorData.getInstance().checkIfDoorsBetween(ox, oy, oz, tx, ty, tz, origin.getInstanceId(), false))
|
if (!target.isDoor() && DoorData.getInstance().checkIfDoorsBetween(ox, oy, oz, tx, ty, tz, origin.getInstanceId(), false))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@@ -582,7 +582,7 @@ public class GeoEngine
|
|||||||
final int ty = target.getY();
|
final int ty = target.getY();
|
||||||
final int tz = target.getZ();
|
final int tz = target.getZ();
|
||||||
|
|
||||||
if (DoorData.getInstance().checkIfDoorsBetween(ox, oy, oz, tx, ty, tz, origin.getInstanceWorld(), false))
|
if (!target.isDoor() && DoorData.getInstance().checkIfDoorsBetween(ox, oy, oz, tx, ty, tz, origin.getInstanceWorld(), false))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user