From c2e31240c326c87666df1f433fc663f0eca6dd78 Mon Sep 17 00:00:00 2001 From: Pierre Maurice Schwang Date: Mon, 23 Dec 2024 21:57:41 +0100 Subject: [PATCH] chore: make texture errors actually meaningful --- .../java/com/fastasyncworldedit/core/util/TextureUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/fastasyncworldedit/core/util/TextureUtil.java b/worldedit-core/src/main/java/com/fastasyncworldedit/core/util/TextureUtil.java index 7c4e7137b7..2c140d86a2 100644 --- a/worldedit-core/src/main/java/com/fastasyncworldedit/core/util/TextureUtil.java +++ b/worldedit-core/src/main/java/com/fastasyncworldedit/core/util/TextureUtil.java @@ -954,7 +954,8 @@ public void loadModTextures() throws IOException { } } if (entry == null) { - LOGGER.error("Cannot find {} in {}", modelsDir, file); + final String[] dirs = Arrays.stream(modelsDir).map(s -> String.format(s, nameSpace, name)).toArray(String[]::new); + LOGGER.error("Cannot find {} in {}", dirs, file); continue; }