Update to 1.17 (#1448)
* Update to include 1.17 materials and tags * Use world height for claim max height * Account for worlds with min height < 0 Fix restore not working under y 0 Change default max claim depth to integer min value Fix creative claims always going to 0, not world min height * Update material listings to include new blocks * Fixes a few missed cases from previous versions * Replaced claim to bounding box bandaid for world max height increase with actual world limit * Account for worlds with min height less than zero * New default maximum depth is now integer min value (-2147483648) to not restrict users no matter how weirdly they set up worlds * Creative claims always extend to world min height, not 0 * RestoreNature restores to a max depth of world min height instead of 0 Closes #1309 Closes #1431
This commit is contained in:
@@ -20,8 +20,6 @@ import java.util.Objects;
|
||||
* <p>While similar to Bukkit's {@link org.bukkit.util.BoundingBox BoundingBox},
|
||||
* this implementation is much more focused on performance and does not use as
|
||||
* many input sanitization operations.
|
||||
*
|
||||
* @author Jikoo
|
||||
*/
|
||||
public class BoundingBox implements Cloneable
|
||||
{
|
||||
@@ -143,7 +141,8 @@ public class BoundingBox implements Cloneable
|
||||
*/
|
||||
public BoundingBox(Claim claim)
|
||||
{
|
||||
this(claim.getLesserBoundaryCorner(), claim.getGreaterBoundaryCorner().clone().add(0, 319, 0), false);
|
||||
this(claim.getLesserBoundaryCorner(), claim.getGreaterBoundaryCorner(), false);
|
||||
this.maxY = Objects.requireNonNull(claim.getLesserBoundaryCorner().getWorld()).getMaxHeight();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user