Skip to content

Commit

Permalink
Update ClientPrefs.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesisfeline committed Nov 9, 2023
1 parent 78a8705 commit 11807b4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions source/backend/ClientPrefs.hx
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,7 @@ class SaveVariables {
public var guitarHeroSustains:Bool = true;
public var discordRPC:Bool = true;

public function new()
{
//Why does haxe needs this again?
}
public function new(){} //Why does haxe needs this again?
}

class ClientPrefs {
Expand Down Expand Up @@ -192,7 +189,7 @@ class ClientPrefs {
#if ACHIEVEMENTS_ALLOWED Achievements.load(); #end

for (key in Reflect.fields(data)) {
if (key != 'gameplaySettings' && Reflect.hasField(FlxG.save.data, key)) {
if(key != 'gameplaySettings' && Reflect.hasField(FlxG.save.data, key)) {
//trace('loaded variable: $key');
Reflect.setField(data, key, Reflect.field(FlxG.save.data, key));
}
Expand Down

0 comments on commit 11807b4

Please sign in to comment.