mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
Update SceneConfig.cs
This commit is contained in:
@@ -29,9 +29,9 @@ namespace TEngine
|
||||
|
||||
public SceneConfig Get(uint id, bool check = true)
|
||||
{
|
||||
if (_configs.ContainsKey(id))
|
||||
if (this._configs.TryGetValue(id, out SceneConfig? config))
|
||||
{
|
||||
return _configs[id];
|
||||
return config;
|
||||
}
|
||||
|
||||
if (check)
|
||||
|
Reference in New Issue
Block a user