diff --git a/src/games/stendhal/server/core/engine/Translate.java b/src/games/stendhal/server/core/engine/Translate.java index b92c5cee23d..f87ceda47d9 100644 --- a/src/games/stendhal/server/core/engine/Translate.java +++ b/src/games/stendhal/server/core/engine/Translate.java @@ -64,8 +64,9 @@ private static void init(String language) { while (line != null) { lidx++; - // ignore empty lines & comments - if (line.isBlank() || line.startsWith("#")) { + // ignore empty lines & comments (because this code is executed during testing we cannot use `String.isBlank` + // from Java 11) + if ("".equals(line.replaceAll("\t| ", "")) || line.startsWith("#")) { line = reader.readLine(); continue; }