Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-09-06 16:12:51 +02:00
Fix FAWE using exclusive build height from PlotSquared (#2123)
Use inclusive build height maximum
Dieser Commit ist enthalten in:
Ursprung
6a31f4179c
Commit
526e1902ca
@ -158,8 +158,10 @@ public class PlotSquaredFeature extends FaweMaskManager {
|
|||||||
|
|
||||||
Region maskedRegion;
|
Region maskedRegion;
|
||||||
if (regions.size() == 1) {
|
if (regions.size() == 1) {
|
||||||
int min = area != null ? area.getMinBuildHeight() : player.getWorld().getMinY();
|
final World world = player.getWorld();
|
||||||
int max = area != null ? Math.min(player.getWorld().getMaxY(), area.getMaxBuildHeight()) : player.getWorld().getMaxY();
|
int min = area != null ? area.getMinBuildHeight() : world.getMinY();
|
||||||
|
// PlotSquared uses exclusive max height, WorldEdit uses inclusive max height -> subtract 1
|
||||||
|
int max = area != null ? Math.min(world.getMaxY(), area.getMaxBuildHeight() - 1) : world.getMaxY();
|
||||||
|
|
||||||
final CuboidRegion region = regions.iterator().next();
|
final CuboidRegion region = regions.iterator().next();
|
||||||
final BlockVector3 pos1 = BlockVector3.at(region.getMinimumX(), min, region.getMinimumZ());
|
final BlockVector3 pos1 = BlockVector3.at(region.getMinimumX(), min, region.getMinimumZ());
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren