Skip to content

Commit 3042584

Browse files
committed
Handle errors.
1 parent e418f6b commit 3042584

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

common/src/main/java/noobanidus/mods/lootr/common/data/DataStorage.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,10 @@ public static boolean clearInventories(UUID id) {
220220

221221
MinecraftServer server = LootrAPI.getServer();
222222
if (server == null) {
223-
// TODO: Errors?
223+
LootrAPI.LOG.error("MinecraftServer is null at this stage; Lootr cannot clear inventories.");
224224
return false;
225225
}
226226

227-
// TODO:
228227
Path dataPath = server.getWorldPath(new LevelResource("data")).resolve("lootr");
229228
List<String> files = new ArrayList<>();
230229
try (Stream<Path> paths = Files.walk(dataPath)) {

0 commit comments

Comments
 (0)