diff --git a/common/src/com/elikill58/negativity/api/packets/nms/versions/Version1_21.java b/common/src/com/elikill58/negativity/api/packets/nms/versions/Version1_21.java index 5c04563aa..71218982a 100644 --- a/common/src/com/elikill58/negativity/api/packets/nms/versions/Version1_21.java +++ b/common/src/com/elikill58/negativity/api/packets/nms/versions/Version1_21.java @@ -10,7 +10,7 @@ public class Version1_21 extends NamedVersion { public Version1_21() { - super("1.20.5"); + super("1.21"); // packets ID seems not same as 1.20 int i = 0; for (Client type : Arrays.asList(Client.TELEPORT_ACCEPT, Client.TILE_NBT_QUERY, Client.DIFFICULTY_CHANGE, diff --git a/common/src/com/elikill58/negativity/universal/translation/NegativityTranslationProviderFactory.java b/common/src/com/elikill58/negativity/universal/translation/NegativityTranslationProviderFactory.java index 46959e854..3e4c856da 100644 --- a/common/src/com/elikill58/negativity/universal/translation/NegativityTranslationProviderFactory.java +++ b/common/src/com/elikill58/negativity/universal/translation/NegativityTranslationProviderFactory.java @@ -41,7 +41,7 @@ public TranslationProvider createTranslationProvider(String language) { continue; } - for (String line : Files.readAllLines(file)) { + for (String line : Files.readAllLines(file, StandardCharsets.UTF_8)) { concatenatedBundles.append(line); // Make sure we have a new line between concatenated files concatenatedBundles.append(System.lineSeparator());