Fix literally every single activatable UI bug (#27401)
* Fix all activatable bugs Apparently this was a load-bearing nullable enum. * build
This commit is contained in:
@@ -136,7 +136,7 @@ public sealed partial class ActivatableUISystem : EntitySystem
|
||||
|
||||
private bool InteractUI(EntityUid user, EntityUid uiEntity, ActivatableUIComponent aui)
|
||||
{
|
||||
if (!_uiSystem.HasUi(uiEntity, aui.Key))
|
||||
if (aui.Key == null || !_uiSystem.HasUi(uiEntity, aui.Key))
|
||||
return false;
|
||||
|
||||
if (_uiSystem.IsUiOpen(uiEntity, aui.Key, user))
|
||||
@@ -205,7 +205,7 @@ public sealed partial class ActivatableUISystem : EntitySystem
|
||||
|
||||
public void CloseAll(EntityUid uid, ActivatableUIComponent? aui = null)
|
||||
{
|
||||
if (!Resolve(uid, ref aui, false))
|
||||
if (!Resolve(uid, ref aui, false) || aui.Key == null)
|
||||
return;
|
||||
|
||||
_uiSystem.CloseUi(uid, aui.Key);
|
||||
|
||||
Reference in New Issue
Block a user