TryGetEntitySystem nullable (#3903)

This commit is contained in:
metalgearsloth
2021-04-30 07:56:17 +10:00
committed by GitHub
parent ece403ca57
commit 6a5e7dbecb

View File

@@ -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;