mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 22:56:45 +01:00
potentially fix partial world auto
This commit is contained in:
parent
9c9841663a
commit
977dfa807f
@ -700,7 +700,7 @@ public abstract class PlotArea {
|
|||||||
PlotId max = getMax();
|
PlotId max = getMax();
|
||||||
if (TYPE == 2) {
|
if (TYPE == 2) {
|
||||||
center = new PlotId(MathMan.average(min.x, max.x), MathMan.average(min.y, max.y));
|
center = new PlotId(MathMan.average(min.x, max.x), MathMan.average(min.y, max.y));
|
||||||
plots = Math.max(max.x - min.x, max.y - min.y) + 1;
|
plots = Math.max(max.x - min.x + 1, max.y - min.y + 1) + 1;
|
||||||
if (start != null) {
|
if (start != null) {
|
||||||
start = new PlotId(start.x - center.x, start.y - center.y);
|
start = new PlotId(start.x - center.x, start.y - center.y);
|
||||||
}
|
}
|
||||||
@ -717,7 +717,7 @@ public abstract class PlotArea {
|
|||||||
PlotId currentId = new PlotId(center.x + start.x, center.y + start.y);
|
PlotId currentId = new PlotId(center.x + start.x, center.y + start.y);
|
||||||
Plot plot = getPlotAbs(currentId);
|
Plot plot = getPlotAbs(currentId);
|
||||||
if (plot != null && plot.canClaim(player)) {
|
if (plot != null && plot.canClaim(player)) {
|
||||||
setMeta("lastPlot", currentId);
|
setMeta("lastPlot", start);
|
||||||
return plot;
|
return plot;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user