Fix biome masking

This commit is contained in:
Jesse Boyd 2016-08-17 15:01:32 +10:00
parent a2589d4493
commit 4267bf1c27

View File

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