mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-02-17 04:41:40 +01:00
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:
parent
a1c3f78293
commit
3c65194dfb
@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user