mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
Update SceneConfig.cs
This commit is contained in:
@@ -29,9 +29,9 @@ namespace TEngine
|
|||||||
|
|
||||||
public SceneConfig Get(uint id, bool check = true)
|
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)
|
if (check)
|
||||||
|
Reference in New Issue
Block a user