fix: correctly invalidate mask after a plot is merged (#2333)

This commit is contained in:
Jordan 2023-07-07 17:27:10 +01:00 committed by GitHub
parent 888683d83b
commit f38c81aa2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -211,8 +211,9 @@ public class PlotSquaredFeature extends FaweMaskManager {
@Override @Override
public boolean isValid(Player player, MaskType type, boolean notify) { public boolean isValid(Player player, MaskType type, boolean notify) {
if ((!connectedPlots.refersTo(plot.getConnectedPlots()) && !singlePlot) || (Settings.Done.RESTRICT_BUILDING && DoneFlag.isDone( if ((!connectedPlots.refersTo(plot.getConnectedPlots()) && (!singlePlot || plot
plot))) { .getConnectedPlots()
.size() > 1)) || (Settings.Done.RESTRICT_BUILDING && DoneFlag.isDone(plot))) {
return false; return false;
} }
return isAllowed(player, plot, type, notify); return isAllowed(player, plot, type, notify);