mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-07 16:36:52 +02:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user