Fix biome masking
This commit is contained in:
parent
a2589d4493
commit
4267bf1c27
@ -95,7 +95,15 @@ public class ProcessedWEExtent extends FaweRegionExtent {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean setBiome(final Vector2D position, final BaseBiome biome) {
|
public boolean setBiome(final Vector2D position, final BaseBiome biome) {
|
||||||
|
if (WEManager.IMP.maskContains(this.mask, (int) position.getX(), (int) position.getZ())) {
|
||||||
|
if (!limit.MAX_CHANGES()) {
|
||||||
|
WEManager.IMP.cancelEditSafe(this, BBC.WORLDEDIT_CANCEL_REASON_MAX_CHANGES);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return super.setBiome(position, biome);
|
return super.setBiome(position, biome);
|
||||||
|
} else if (!limit.MAX_FAILS()) {
|
||||||
|
WEManager.IMP.cancelEditSafe(this, BBC.WORLDEDIT_CANCEL_REASON_MAX_FAILS);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user