Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix postcode handling #1845

Merged
merged 2 commits into from
Jan 29, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions MainModule/Client/UI/Default/ServerDetails.luau
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,6 @@ return function(data, env)
end)
end

local success, isAmerica = xpcall(function()
return service.LocalizationService:GetCountryRegionForPlayerAsync(service.Players.LocalPlayer) == "US"
end, function() return false end)

do

local function show()
Expand All @@ -178,7 +174,7 @@ return function(data, env)
{"Country", serii.country or "[Error]"},
{"Region", serii.region or "[Error]"},
{"City", serii.city or "[Error]"},
{if isAmerica then "Zipcode" else "Postcode", serii.zipcode or "[Error]"},
{if serii.country and (string.match(serii.country, "United States") or string.match(serii.country, "Philippines")) then "Zipcode" else "Postcode", serii.zipcode or "[Error]"},
{"IP Address", serii.ip or "[Error]"},
{"Coordinates", serii.coords or "[Error]"},
}) do table.insert(entries, v) end
Expand Down
Loading