Send client locale strings

This commit is contained in:
Vortrex
2022-04-06 16:37:06 -05:00
parent 1752a1a659
commit f21f0445c2

View File

@@ -1199,9 +1199,9 @@ function tellPlayerToSpawn(client, skinId, position) {
// ==========================================================================
function sendPlayerLocaleStrings(client) {
let strings = getServerConfig().locale.sendStringsToClient;
let strings = getGlobalConfig().locale.sendStringsToClient;
for(let i in strings) {
sendNetworkEventToPlayer("vrr.localeString", client, i, getLocaleString(client, strings[i]));
sendNetworkEventToPlayer("vrr.localeString", client, strings[i], getLocaleString(client, strings[i]));
}
}