Skip to content

Commit

Permalink
Make it more clear which areas are overlapping
Browse files Browse the repository at this point in the history
  • Loading branch information
3TUSK committed Jul 20, 2022
1 parent 3149802 commit cfa941f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ apply plugin: 'eclipse'
apply plugin: 'maven-publish'
apply plugin: 'org.spongepowered.mixin'

version = '0.5.16'
version = '0.5.17'
group = 'org.teacon'
archivesBaseName = 'AreaControl-Forge-1.18'

Expand Down
2 changes: 2 additions & 0 deletions src/main/java/org/teacon/areacontrol/AreaManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,12 @@ void load() throws Exception {
}
} else {
LOGGER.warn("Area {} (UID {}) has overlap with at least one existing area; it should not happen and will be removed.", a.name, a.uid);
LOGGER.warn("Overlapping areas: {}", maybeOverlaps.stream().map(overlap -> "Area " + overlap.name + " (" + overlap.uid + ")").toList());
invalidArea.add(a);
itr.remove();
}
}
// TODO Make auto-remove optional
for (var a : invalidArea) {
this.remove(a, ResourceKey.create(Registry.DIMENSION_REGISTRY, new ResourceLocation(a.dimension)));
}
Expand Down

0 comments on commit cfa941f

Please sign in to comment.