Fix missing edge deletion of island.

The bounding box was erroneously being made smaller when it was not
required because the inBounds check does that already.

https://github.com/BentoBoxWorld/BentoBox/issues/1863
This commit is contained in:
tastybento 2021-10-03 15:50:18 -07:00
parent a1c3f78293
commit 3c65194dfb
2 changed files with 2 additions and 1 deletions

View File

@ -676,7 +676,7 @@ public class Island implements DataObject, MetaDataAble {
* @since 1.5.2
*/
public BoundingBox getBoundingBox() {
return new BoundingBox(getMinX(), 0.0D, getMinZ(), getMaxX()-1.0D, world.getMaxHeight(), getMaxZ()-1.0D);
return new BoundingBox(getMinX(), 0.0D, getMinZ(), getMaxX(), world.getMaxHeight(), getMaxZ());
}
/**

View File

@ -473,6 +473,7 @@ public class IslandTest {
i.setWorld(world);
when(location.getWorld()).thenReturn(world);
assertNotNull(i.getBoundingBox());
assertEquals("BoundingBox [minX=-400.0, minY=0.0, minZ=-400.0, maxX=400.0, maxY=0.0, maxZ=400.0]", i.getBoundingBox().toString());
}
/**