aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn/ServerManager.cs
diff options
context:
space:
mode:
authorRylan/wowmom98 <[email protected]>2017-05-28 14:44:08 -0400
committerRylan/wowmom98 <[email protected]>2017-05-28 14:44:24 -0400
commitc7ba7d733c756d196f98dd4533289a1ef4db715f (patch)
tree59cb532e15ebff313fdba2be264d78ec0033f407 /ShiftOS_TheReturn/ServerManager.cs
parent9914c18456a0c08019e778479ce727ac937b1e57 (diff)
downloadshiftos_thereturn-c7ba7d733c756d196f98dd4533289a1ef4db715f.tar.gz
shiftos_thereturn-c7ba7d733c756d196f98dd4533289a1ef4db715f.tar.bz2
shiftos_thereturn-c7ba7d733c756d196f98dd4533289a1ef4db715f.zip
un obsoleting
Diffstat (limited to 'ShiftOS_TheReturn/ServerManager.cs')
-rw-r--r--ShiftOS_TheReturn/ServerManager.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ShiftOS_TheReturn/ServerManager.cs b/ShiftOS_TheReturn/ServerManager.cs
index f0acaa2..abb674d 100644
--- a/ShiftOS_TheReturn/ServerManager.cs
+++ b/ShiftOS_TheReturn/ServerManager.cs
@@ -148,7 +148,7 @@ Ping: {ServerManager.DigitalSocietyPing} ms
switch(msg.Name)
{
case "getguid_fromserver":
- if(SaveSystem.CurrentSave.Username == msg.Contents)
+ if(SaveSystem.CurrentUser.Username == msg.Contents)
{
client.Send(new NetObject("yes_i_am", new ServerMessage
{
@@ -244,7 +244,7 @@ Ping: {ServerManager.DigitalSocietyPing} ms
else if(msg.Name == "update_your_cp")
{
var args = JsonConvert.DeserializeObject<Dictionary<string, object>>(msg.Contents);
- if(args["username"] as string == SaveSystem.CurrentSave.Username)
+ if(args["username"] as string == SaveSystem.CurrentUser.Username)
{
SaveSystem.CurrentSave.Codepoints += (long)args["amount"];
Desktop.InvokeOnWorkerThread(new Action(() =>