Skip to content

Commit

Permalink
Temporary fix for #510, bump cloud to rc candidate
Browse files Browse the repository at this point in the history
  • Loading branch information
onebeastchris committed May 14, 2024
1 parent 4404c15 commit 78302db
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion build-logic/src/main/kotlin/Versions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ object Versions {
const val nettyVersion = "4.1.49.Final"
const val snakeyamlVersion = "1.28"
// TODO move to cloud release once those have 1.20.5 support
const val cloudVersion = "2.0.0-20240503.183307-62" // for cloud-minecraft
const val cloudVersion = "2.0.0-beta.7" // for cloud-minecraft
const val cloudCore = "2.0.0-rc.1"
const val bstatsVersion = "3.0.2"

const val javaWebsocketVersion = "1.5.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
package org.geysermc.floodgate.util;

import java.util.Collection;
import java.util.Locale;
import java.util.UUID;
import net.md_5.bungee.api.CommandSender;
import net.md_5.bungee.api.ProxyServer;
Expand Down Expand Up @@ -63,7 +64,10 @@ public BungeeCommandUtil(LanguageManager manager, ProxyServer server, FloodgateA
ProxiedPlayer player = (ProxiedPlayer) source;
UUID uuid = player.getUniqueId();
String username = player.getName();
String locale = Utils.getLocale(player.getLocale());

// TODO temporary fix for https://github.com/SpigotMC/BungeeCord/issues/3680
Locale playerLocale = player.getLocale();
String locale = Utils.getLocale(playerLocale != null ? playerLocale : Locale.getDefault());

return new PlayerAudience(uuid, username, locale, source, this, true);
}
Expand Down
3 changes: 1 addition & 2 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ dependencies {
api("com.nukkitx.fastutil", "fastutil-short-object-maps", Versions.fastutilVersion)
api("com.nukkitx.fastutil", "fastutil-int-object-maps", Versions.fastutilVersion)
api("org.java-websocket", "Java-WebSocket", Versions.javaWebsocketVersion)
// TODO move to cloud release
api("org.incendo", "cloud-core", "2.0.0-20240503.181645-64")
api("org.incendo", "cloud-core", Versions.cloudCore)
api("org.bstats", "bstats-base", Versions.bstatsVersion)
}

Expand Down

0 comments on commit 78302db

Please sign in to comment.