Skip to content

Commit

Permalink
com.rest.blockadelabs 1.2.1 (#14)
Browse files Browse the repository at this point in the history
- Fixed Settings config lookup
  • Loading branch information
StephenHodgson committed Dec 10, 2023
1 parent 652144c commit cdecace
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions Runtime/BlockadeLabsSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,16 @@ public BlockadeLabsSettings(BlockadeLabsConfiguration configuration)
configuration = Resources.LoadAll<BlockadeLabsConfiguration>(string.Empty).FirstOrDefault(asset => asset != null);
}

if (configuration == null)
if (configuration != null)
{
throw new MissingReferenceException($"Failed to find a valid {nameof(BlockadeLabsConfiguration)}!");
Info = new BlockadeLabsSettingsInfo(configuration.ProxyDomain);
cachedDefault = this;
}
else
{
Info = new BlockadeLabsSettingsInfo();
cachedDefault = this;
}

Info = new BlockadeLabsSettingsInfo(configuration.ProxyDomain);
cachedDefault = this;
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "BlockadeLabs",
"description": "A Non-Official Blockade Labs Rest Client for Unity (UPM)",
"keywords": [],
"version": "1.2.0",
"version": "1.2.1",
"unity": "2021.3",
"documentationUrl": "https://github.com/RageAgainstThePixel/com.rest.blockadelabs#documentation",
"changelogUrl": "https://github.com/RageAgainstThePixel/com.rest.blockadelabs/releases",
Expand Down

0 comments on commit cdecace

Please sign in to comment.