Update upstream (for 1.19.3 support) #4

Zusammengeführt
Lixfel hat 74 Commits von upstream nach main 2023-02-02 11:32:53 +01:00 zusammengeführt
Nur Änderungen aus Commit bf28ab47b8 werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -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