Fix anvil set counter
This commit is contained in:
parent
a2daa3a6a5
commit
c696b0260a
@ -14,7 +14,7 @@ public class SetPatternFilter extends MCAFilterCounter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@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);
|
BaseBlock newBlock = to.apply(x, y, z);
|
||||||
int currentId = block.getId();
|
int currentId = block.getId();
|
||||||
if (FaweCache.hasNBT(currentId)) {
|
if (FaweCache.hasNBT(currentId)) {
|
||||||
@ -22,5 +22,6 @@ public class SetPatternFilter extends MCAFilterCounter {
|
|||||||
}
|
}
|
||||||
block.setId(newBlock.getId());
|
block.setId(newBlock.getId());
|
||||||
block.setData(newBlock.getData());
|
block.setData(newBlock.getData());
|
||||||
|
count.increment();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -93,7 +93,7 @@ public class PlotSquaredFeature extends FaweMaskManager {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
UUID uid = fp.getUUID();
|
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
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user