Fixes wrong protection bounding box (#1971)

#1966 fixed a bounding box size for the whole island, while the protection bounding box was still wrong.

Fixes https://github.com/BentoBoxWorld/BSkyBlock/issues/473
This commit is contained in:
BONNe 2022-04-26 12:06:50 +03:00 committed by GitHub
parent b3e55a7b55
commit c4c51d00e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -803,7 +803,7 @@ public class Island implements DataObject, MetaDataAble {
* @since 1.5.2 * @since 1.5.2
*/ */
public BoundingBox getProtectionBoundingBox() { public BoundingBox getProtectionBoundingBox() {
return new BoundingBox(getMinProtectedX(), 0.0D, getMinProtectedZ(), getMaxProtectedX()-1.0D, world.getMaxHeight(), getMaxProtectedZ()-1.0D); return new BoundingBox(getMinProtectedX(), world.getMinHeight(), getMinProtectedZ(), getMaxProtectedX()-1.0D, world.getMaxHeight(), getMaxProtectedZ()-1.0D);
} }
/** /**
@ -1661,9 +1661,4 @@ public class Island implements DataObject, MetaDataAble {
+ ", cooldowns=" + cooldowns + ", commandRanks=" + commandRanks + ", reserved=" + reserved + ", cooldowns=" + cooldowns + ", commandRanks=" + commandRanks + ", reserved=" + reserved
+ ", metaData=" + metaData + ", homes=" + homes + ", maxHomes=" + maxHomes + "]"; + ", metaData=" + metaData + ", homes=" + homes + ", maxHomes=" + maxHomes + "]";
} }
} }