From a39f3d8143e04fed6b199d5dd67d3d95dafed2ca Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Sun, 21 Jan 2024 00:32:08 +0100 Subject: [PATCH] More precise error WorldUtil --- .../src/main/java/fr/pandacube/lib/paper/world/WorldUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandalib-paper/src/main/java/fr/pandacube/lib/paper/world/WorldUtil.java b/pandalib-paper/src/main/java/fr/pandacube/lib/paper/world/WorldUtil.java index b8d7a1d..760d783 100644 --- a/pandalib-paper/src/main/java/fr/pandacube/lib/paper/world/WorldUtil.java +++ b/pandalib-paper/src/main/java/fr/pandacube/lib/paper/world/WorldUtil.java @@ -55,7 +55,7 @@ public class WorldUtil { String[] fileList = file.list(); if (fileList == null) { - throw new IllegalStateException("The provided world '" + world + "' does not hae a valid region folder."); + throw new IllegalStateException("The provided world '" + world + "' does not have a valid region folder (expected '" + file + "')."); } return Arrays.stream(fileList)