* Wrong limit used

This commit is contained in:
Jesse Boyd 2016-08-04 19:48:11 +10:00
parent 895de11a09
commit 5725e3bdd3
1 changed files with 2 additions and 2 deletions

View File

@ -30,11 +30,11 @@ public class ProcessedWEExtent extends FaweRegionExtent {
@Override
public Entity createEntity(final Location location, final BaseEntity entity) {
if (!limit.MAX_ENTITIES() || entity == null) {
if (entity == null) {
return null;
}
if (WEManager.IMP.maskContains(this.mask, location.getBlockX(), location.getBlockZ())) {
if (!limit.MAX_CHANGES()) {
if (!limit.MAX_ENTITIES()) {
WEManager.IMP.cancelEditSafe(this, BBC.WORLDEDIT_CANCEL_REASON_MAX_CHANGES);
return null;
}