Skip to content

Commit

Permalink
fix: load single plot areas on creation (#4490)
Browse files Browse the repository at this point in the history
* fix: load single plot areas on creation

* fix: don't allow overlapping plot areas
  • Loading branch information
PierreSchwang authored Sep 14, 2024
1 parent 5fc8e06 commit 001ae78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Core/src/main/java/com/plotsquared/core/PlotSquared.java
Original file line number Diff line number Diff line change
Expand Up @@ -795,9 +795,8 @@ public void loadWorld(
if (world.equals("CheckingPlotSquaredGenerator")) {
return;
}
if (!this.getPlotAreaManager().addWorld(world)) {
return;
}
// Don't check the return result -> breaks runtime loading of single plot areas on creation
this.getPlotAreaManager().addWorld(world);
Set<String> worlds;
if (this.worldConfiguration.contains("worlds")) {
worlds = this.worldConfiguration.getConfigurationSection("worlds").getKeys(false);
Expand Down
1 change: 1 addition & 0 deletions Core/src/main/java/com/plotsquared/core/command/Area.java
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ public boolean onCommand(final PlotPlayer<?> player, String[] args) {
CuboidRegion.makeCuboid(playerSelectedRegion)
).length != 0) {
player.sendMessage(TranslatableCaption.of("single.single_area_overlapping"));
return false;
}
// Alter the region
final BlockVector3 playerSelectionMin = playerSelectedRegion.getMinimumPoint();
Expand Down

0 comments on commit 001ae78

Please sign in to comment.