Skip to content

Commit

Permalink
No copypasta thanks
Browse files Browse the repository at this point in the history
  • Loading branch information
3TUSK committed Aug 20, 2020
1 parent 7e9f39d commit 0df5113
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/teacon/areacontrol/AreaManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void loadFrom(Path dataDirRoot) throws Exception {
}
Path wildnessArea = dataDirRoot.resolve("wildness.json");
if (Files.isRegularFile(wildnessArea)) {
try (Reader reader = Files.newBufferedReader(userDefinedAreas)) {
try (Reader reader = Files.newBufferedReader(wildnessArea)) {
Area a = GSON.fromJson(reader, Area.class);
this.wildness.properties.putAll(a.properties);
}
Expand Down Expand Up @@ -127,4 +127,4 @@ public Area findBy(String name) {
public Collection<Area> getKnownAreas() {
return Collections.unmodifiableCollection(this.areasByName.values());
}
}
}

0 comments on commit 0df5113

Please sign in to comment.