mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-16 17:16:11 +00:00
fix: bring default min/max y in line with upstream in AbstractRegion (#1992)
- Fixes #1987
This commit is contained in:
parent
e36b838227
commit
bf28ab47b8
@ -223,23 +223,11 @@ public abstract class AbstractRegion extends AbstractSet<BlockVector3> implement
|
||||
// Sub-class utilities
|
||||
|
||||
protected final int getWorldMinY() {
|
||||
//FAWE start > Server default based on version
|
||||
return world == null ? WorldEdit
|
||||
.getInstance()
|
||||
.getPlatformManager()
|
||||
.queryCapability(Capability.WORLD_EDITING)
|
||||
.versionMinY() : world.getMinY();
|
||||
//FAWE end
|
||||
return world == null ? Integer.MIN_VALUE : world.getMinY();
|
||||
}
|
||||
|
||||
protected final int getWorldMaxY() {
|
||||
//FAWE start > Server default based on version
|
||||
return world == null ? WorldEdit
|
||||
.getInstance()
|
||||
.getPlatformManager()
|
||||
.queryCapability(Capability.WORLD_EDITING)
|
||||
.versionMaxY() : world.getMaxY();
|
||||
//FAWE end
|
||||
return world == null ? Integer.MAX_VALUE : world.getMaxY();
|
||||
}
|
||||
|
||||
//FAWE start
|
||||
|
Loading…
Reference in New Issue
Block a user