Compare commits

...

4 Commits

Author SHA1 Message Date
f54bb88394 deprecate PlotId#copy 2022-10-02 20:23:26 +02:00
3446b913cd plots.auto.mega fix for #3815 (#3816)
Co-authored-by: Resi <unconfigured@null.spigotmc.org>
2022-09-28 10:53:44 +02:00
8b8fd6aab7 Update dependency com.intellectualsites.bom:bom-1.18.x to v1.15 (#3809)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-09-22 22:26:11 +02:00
520bb64eca Back to snapshot for development 2022-09-21 16:29:17 +02:00
5 changed files with 10 additions and 7 deletions

View File

@ -251,6 +251,7 @@ public class Auto extends SubCommand {
TranslatableCaption.of("permission.no_permission"),
Template.of("node", String.valueOf(Permission.PERMISSION_AUTO_MEGA))
);
return false;
}
if (!force && sizeX * sizeZ > Settings.Claim.MAX_AUTO_AREA) {
player.sendMessage(

View File

@ -176,7 +176,7 @@ public class DatabaseCommand extends SubCommand {
);
worldFile.renameTo(newFile);
}
plot.setId(newId.copy());
plot.setId(newId);
plot.setArea(pa);
plots.add(plot);
continue;

View File

@ -1836,8 +1836,8 @@ public class Plot {
}
// Swap cached
final PlotId temp = PlotId.of(this.getId().getX(), this.getId().getY());
this.id = plot.getId().copy();
plot.id = temp.copy();
this.id = plot.getId();
plot.id = temp;
this.area.removePlot(this.getId());
plot.area.removePlot(plot.getId());
this.area.addPlotAbs(this);
@ -1863,7 +1863,7 @@ public class Plot {
return false;
}
this.area.removePlot(this.id);
this.id = plot.getId().copy();
this.id = plot.getId();
this.area.addPlotAbs(this);
DBFunc.movePlot(this, plot);
TaskManager.runTaskLater(whenDone, TaskTime.ticks(1L));

View File

@ -110,9 +110,11 @@ public final class PlotId {
* Get a copy of the plot ID
*
* @return Plot ID copy
* @deprecated PlotId is immutable, copy is not required.
*/
@Deprecated(forRemoval = true, since = "TODO")
public @NonNull PlotId copy() {
return of(this.getX(), this.getY());
return this;
}
/**

View File

@ -19,7 +19,7 @@ plugins {
}
group = "com.plotsquared"
version = "6.10.0"
version = "6.10.1-SNAPSHOT"
subprojects {
group = rootProject.group
@ -65,7 +65,7 @@ subprojects {
}
dependencies {
implementation(platform("com.intellectualsites.bom:bom-1.18.x:1.14"))
implementation(platform("com.intellectualsites.bom:bom-1.18.x:1.15"))
}
dependencies {