diff --git a/src/main/java/net/raphimc/viaproxy/saves/impl/accounts/OfflineAccount.java b/src/main/java/net/raphimc/viaproxy/saves/impl/accounts/OfflineAccount.java index fd533d4..900e240 100644 --- a/src/main/java/net/raphimc/viaproxy/saves/impl/accounts/OfflineAccount.java +++ b/src/main/java/net/raphimc/viaproxy/saves/impl/accounts/OfflineAccount.java @@ -20,6 +20,7 @@ package net.raphimc.viaproxy.saves.impl.accounts; import com.google.gson.JsonObject; import org.apache.http.impl.client.CloseableHttpClient; +import java.nio.charset.StandardCharsets; import java.util.UUID; public class OfflineAccount extends Account { @@ -34,7 +35,7 @@ public class OfflineAccount extends Account { public OfflineAccount(final String name) { this.name = name; - this.uuid = UUID.nameUUIDFromBytes(("OfflinePlayer:" + name).getBytes()); + this.uuid = UUID.nameUUIDFromBytes(("OfflinePlayer:" + name).getBytes(StandardCharsets.UTF_8)); } @Override