Skip to content

Commit

Permalink
bit clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
Furrior committed Mar 4, 2025
1 parent 691ab8e commit b81decc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modular_ss220/metaserver/code/ss_central.dm
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ SUBSYSTEM_DEF(central)
return

var/list/data = json_decode(response.body)
if(data["total"] != 0)
if(length(data["items"]))
player.donator_level = data["items"][1]["tier"]

/datum/controller/subsystem/central/proc/get_player_donate_tier_blocking(client/player)
Expand All @@ -186,5 +186,5 @@ SUBSYSTEM_DEF(central)
return 0

var/list/data = json_decode(response.body)
if(data["total"] != 0)
if(length(data["items"]))
return data["items"][1]["tier"]

0 comments on commit b81decc

Please sign in to comment.