TryGetEntitySystem nullable (#3903)
This commit is contained in:
@@ -217,7 +217,7 @@ namespace Content.Client.State
|
|||||||
private void OnKeyBindStateChanged(ViewportBoundKeyEventArgs args)
|
private void OnKeyBindStateChanged(ViewportBoundKeyEventArgs args)
|
||||||
{
|
{
|
||||||
// If there is no InputSystem, then there is nothing to forward to, and nothing to do here.
|
// If there is no InputSystem, then there is nothing to forward to, and nothing to do here.
|
||||||
if(!EntitySystemManager.TryGetEntitySystem(out InputSystem inputSys))
|
if(!EntitySystemManager.TryGetEntitySystem(out InputSystem? inputSys))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var kArgs = args.KeyEventArgs;
|
var kArgs = args.KeyEventArgs;
|
||||||
|
|||||||
Reference in New Issue
Block a user