diff --git a/core/src/main/java/com/seibel/distanthorizons/core/pos/DhLodPos.java b/core/src/main/java/com/seibel/distanthorizons/core/pos/DhLodPos.java index cbc08fb64..2709fc6de 100644 --- a/core/src/main/java/com/seibel/distanthorizons/core/pos/DhLodPos.java +++ b/core/src/main/java/com/seibel/distanthorizons/core/pos/DhLodPos.java @@ -72,7 +72,11 @@ public class DhLodPos implements Comparable // Get the width of this pos, measured in the target detail level. public int getWidthAtDetail(byte targetLevel) { - LodUtil.assertTrue(targetLevel <= this.detailLevel); + if (targetLevel > this.detailLevel) + { + LodUtil.assertNotReach("getWidthAtDetail for pos "+this+", given target detail level of bounds: ["+targetLevel+"], this: ["+this.detailLevel+"]"); + } + return BitShiftUtil.powerOfTwo(this.detailLevel - targetLevel); }