Do not check for doors between if target is already a door.
This commit is contained in:
parent
ba7092e5b6
commit
13b55f77fe
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user