Commented region debug messages.

This commit is contained in:
MobiusDev 2018-03-26 20:47:45 +00:00
parent 99f9841901
commit 2b22f885fb
13 changed files with 26 additions and 13 deletions

View File

@ -299,7 +299,8 @@ public class GeoEngine
final ABlock block = getBlock(geoX, geoY);
if (block == null) // null block check
{
_log.warning("Cound not find geodata block at " + getWorldX(geoX) + ", " + getWorldY(geoY) + ".");
// TODO: Find when this can be null. (Bad geodata? Check L2World getRegion method.)
// _log.warning("Could not find geodata block at " + getWorldX(geoX) + ", " + getWorldY(geoY) + ".");
return false;
}
return block.hasGeoPos();

View File

@ -771,7 +771,8 @@ public final class L2World
}
catch (ArrayIndexOutOfBoundsException e)
{
_log.warning(getClass().getSimpleName() + ": Incorrect world region X: " + ((x >> SHIFT_BY) + OFFSET_X) + " Y: " + ((y >> SHIFT_BY) + OFFSET_Y) + " Z: " + ((z >> SHIFT_BY_Z) + OFFSET_Z) + " for coordinates x: " + x + " y: " + y + " z: " + z);
// TODO: Find when this can be null. (Bad geodata? Check GeoEngine hasGeoPos method.)
// _log.warning(getClass().getSimpleName() + ": Incorrect world region X: " + ((x >> SHIFT_BY) + OFFSET_X) + " Y: " + ((y >> SHIFT_BY) + OFFSET_Y) + " Z: " + ((z >> SHIFT_BY_Z) + OFFSET_Z) + " for coordinates x: " + x + " y: " + y + " z: " + z);
return null;
}
}

View File

@ -299,7 +299,8 @@ public class GeoEngine
final ABlock block = getBlock(geoX, geoY);
if (block == null) // null block check
{
_log.warning("Cound not find geodata block at " + getWorldX(geoX) + ", " + getWorldY(geoY) + ".");
// TODO: Find when this can be null. (Bad geodata? Check L2World getRegion method.)
// _log.warning("Could not find geodata block at " + getWorldX(geoX) + ", " + getWorldY(geoY) + ".");
return false;
}
return block.hasGeoPos();

View File

@ -771,7 +771,8 @@ public final class L2World
}
catch (ArrayIndexOutOfBoundsException e)
{
_log.warning(getClass().getSimpleName() + ": Incorrect world region X: " + ((x >> SHIFT_BY) + OFFSET_X) + " Y: " + ((y >> SHIFT_BY) + OFFSET_Y) + " Z: " + ((z >> SHIFT_BY_Z) + OFFSET_Z) + " for coordinates x: " + x + " y: " + y + " z: " + z);
// TODO: Find when this can be null. (Bad geodata? Check GeoEngine hasGeoPos method.)
// _log.warning(getClass().getSimpleName() + ": Incorrect world region X: " + ((x >> SHIFT_BY) + OFFSET_X) + " Y: " + ((y >> SHIFT_BY) + OFFSET_Y) + " Z: " + ((z >> SHIFT_BY_Z) + OFFSET_Z) + " for coordinates x: " + x + " y: " + y + " z: " + z);
return null;
}
}

View File

@ -299,7 +299,8 @@ public class GeoEngine
final ABlock block = getBlock(geoX, geoY);
if (block == null) // null block check
{
_log.warning("Cound not find geodata block at " + getWorldX(geoX) + ", " + getWorldY(geoY) + ".");
// TODO: Find when this can be null. (Bad geodata? Check L2World getRegion method.)
// _log.warning("Could not find geodata block at " + getWorldX(geoX) + ", " + getWorldY(geoY) + ".");
return false;
}
return block.hasGeoPos();

View File

@ -771,7 +771,8 @@ public final class L2World
}
catch (ArrayIndexOutOfBoundsException e)
{
_log.warning(getClass().getSimpleName() + ": Incorrect world region X: " + ((x >> SHIFT_BY) + OFFSET_X) + " Y: " + ((y >> SHIFT_BY) + OFFSET_Y) + " Z: " + ((z >> SHIFT_BY_Z) + OFFSET_Z) + " for coordinates x: " + x + " y: " + y + " z: " + z);
// TODO: Find when this can be null. (Bad geodata? Check GeoEngine hasGeoPos method.)
// _log.warning(getClass().getSimpleName() + ": Incorrect world region X: " + ((x >> SHIFT_BY) + OFFSET_X) + " Y: " + ((y >> SHIFT_BY) + OFFSET_Y) + " Z: " + ((z >> SHIFT_BY_Z) + OFFSET_Z) + " for coordinates x: " + x + " y: " + y + " z: " + z);
return null;
}
}

View File

@ -299,7 +299,8 @@ public class GeoEngine
final ABlock block = getBlock(geoX, geoY);
if (block == null) // null block check
{
_log.warning("Cound not find geodata block at " + getWorldX(geoX) + ", " + getWorldY(geoY) + ".");
// TODO: Find when this can be null. (Bad geodata? Check L2World getRegion method.)
// _log.warning("Could not find geodata block at " + getWorldX(geoX) + ", " + getWorldY(geoY) + ".");
return false;
}
return block.hasGeoPos();

View File

@ -771,7 +771,8 @@ public final class L2World
}
catch (ArrayIndexOutOfBoundsException e)
{
_log.warning(getClass().getSimpleName() + ": Incorrect world region X: " + ((x >> SHIFT_BY) + OFFSET_X) + " Y: " + ((y >> SHIFT_BY) + OFFSET_Y) + " Z: " + ((z >> SHIFT_BY_Z) + OFFSET_Z) + " for coordinates x: " + x + " y: " + y + " z: " + z);
// TODO: Find when this can be null. (Bad geodata? Check GeoEngine hasGeoPos method.)
// _log.warning(getClass().getSimpleName() + ": Incorrect world region X: " + ((x >> SHIFT_BY) + OFFSET_X) + " Y: " + ((y >> SHIFT_BY) + OFFSET_Y) + " Z: " + ((z >> SHIFT_BY_Z) + OFFSET_Z) + " for coordinates x: " + x + " y: " + y + " z: " + z);
return null;
}
}

View File

@ -297,7 +297,8 @@ public class GeoEngine
final ABlock block = getBlock(geoX, geoY);
if (block == null) // null block check
{
_log.warning("Cound not find geodata block at " + getWorldX(geoX) + ", " + getWorldY(geoY) + ".");
// TODO: Find when this can be null.
// _log.warning("Could not find geodata block at " + getWorldX(geoX) + ", " + getWorldY(geoY) + ".");
return false;
}
return block.hasGeoPos();

View File

@ -299,7 +299,8 @@ public class GeoEngine
final ABlock block = getBlock(geoX, geoY);
if (block == null) // null block check
{
_log.warning("Cound not find geodata block at " + getWorldX(geoX) + ", " + getWorldY(geoY) + ".");
// TODO: Find when this can be null. (Bad geodata? Check L2World getRegion method.)
// _log.warning("Could not find geodata block at " + getWorldX(geoX) + ", " + getWorldY(geoY) + ".");
return false;
}
return block.hasGeoPos();

View File

@ -771,7 +771,8 @@ public final class L2World
}
catch (ArrayIndexOutOfBoundsException e)
{
_log.warning(getClass().getSimpleName() + ": Incorrect world region X: " + ((x >> SHIFT_BY) + OFFSET_X) + " Y: " + ((y >> SHIFT_BY) + OFFSET_Y) + " Z: " + ((z >> SHIFT_BY_Z) + OFFSET_Z) + " for coordinates x: " + x + " y: " + y + " z: " + z);
// TODO: Find when this can be null. (Bad geodata? Check GeoEngine hasGeoPos method.)
// _log.warning(getClass().getSimpleName() + ": Incorrect world region X: " + ((x >> SHIFT_BY) + OFFSET_X) + " Y: " + ((y >> SHIFT_BY) + OFFSET_Y) + " Z: " + ((z >> SHIFT_BY_Z) + OFFSET_Z) + " for coordinates x: " + x + " y: " + y + " z: " + z);
return null;
}
}

View File

@ -299,7 +299,8 @@ public class GeoEngine
final ABlock block = getBlock(geoX, geoY);
if (block == null) // null block check
{
_log.warning("Cound not find geodata block at " + getWorldX(geoX) + ", " + getWorldY(geoY) + ".");
// TODO: Find when this can be null. (Bad geodata? Check L2World getRegion method.)
// _log.warning("Could not find geodata block at " + getWorldX(geoX) + ", " + getWorldY(geoY) + ".");
return false;
}
return block.hasGeoPos();

View File

@ -771,7 +771,8 @@ public final class L2World
}
catch (ArrayIndexOutOfBoundsException e)
{
_log.warning(getClass().getSimpleName() + ": Incorrect world region X: " + ((x >> SHIFT_BY) + OFFSET_X) + " Y: " + ((y >> SHIFT_BY) + OFFSET_Y) + " Z: " + ((z >> SHIFT_BY_Z) + OFFSET_Z) + " for coordinates x: " + x + " y: " + y + " z: " + z);
// TODO: Find when this can be null. (Bad geodata? Check GeoEngine hasGeoPos method.)
// _log.warning(getClass().getSimpleName() + ": Incorrect world region X: " + ((x >> SHIFT_BY) + OFFSET_X) + " Y: " + ((y >> SHIFT_BY) + OFFSET_Y) + " Z: " + ((z >> SHIFT_BY_Z) + OFFSET_Z) + " for coordinates x: " + x + " y: " + y + " z: " + z);
return null;
}
}