Fix cross-map BUIs (#5115)

Even the ignore range bit is going to break with pvs but uhh not sure on that one unless we do overrides or something.
This commit is contained in:
metalgearsloth
2024-05-16 19:00:11 +02:00
committed by GitHub
parent fbc8086335
commit b056caeed7
@@ -944,12 +944,12 @@ public abstract class SharedUserInterfaceSystem : EntitySystem
EntityCoordinates uiCoordinates,
MapId uiMap)
{
if (!_xformQuery.TryGetComponent(actor, out var actorXform) || actorXform.MapID != uiMap)
return false;
if (_ignoreUIRangeQuery.HasComponent(actor))
return true;
if (!_xformQuery.TryGetComponent(actor, out var actorXform))
return false;
// Handle pluggable BoundUserInterfaceCheckRangeEvent
var checkRangeEvent = new BoundUserInterfaceCheckRangeEvent(uid, key, data, actor);
RaiseLocalEvent(uid, ref checkRangeEvent, broadcast: true);