Fix anvil set counter

This commit is contained in:
Jesse Boyd 2018-03-15 16:51:52 +11:00
parent a2daa3a6a5
commit c696b0260a
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
2 changed files with 3 additions and 2 deletions

View File

@ -14,7 +14,7 @@ public class SetPatternFilter extends MCAFilterCounter {
}
@Override
public void applyBlock(int x, int y, int z, BaseBlock block, MutableLong ignore) {
public void applyBlock(int x, int y, int z, BaseBlock block, MutableLong count) {
BaseBlock newBlock = to.apply(x, y, z);
int currentId = block.getId();
if (FaweCache.hasNBT(currentId)) {
@ -22,5 +22,6 @@ public class SetPatternFilter extends MCAFilterCounter {
}
block.setId(newBlock.getId());
block.setData(newBlock.getData());
count.increment();
}
}

View File

@ -93,7 +93,7 @@ public class PlotSquaredFeature extends FaweMaskManager {
return false;
}
UUID uid = fp.getUUID();
return !Flags.NO_WORLDEDIT.isTrue(plot) && (plot.isOwner(uid) || (type == MaskType.MEMBER && (plot.getTrusted().contains(uid) || (plot.getMembers().contains(uid) && fp.hasPermission("fawe.plotsquared.member"))))) || fp.hasPermission("fawe.plotsquared.admin"));
return !Flags.NO_WORLDEDIT.isTrue(plot) && ((plot.isOwner(uid) || (type == MaskType.MEMBER && (plot.getTrusted().contains(uid) || (plot.getMembers().contains(uid) && fp.hasPermission("fawe.plotsquared.member"))))) || fp.hasPermission("fawe.plotsquared.admin"));
}
@Override