Update overlays to use WorldAABB instead (#5128)

This commit is contained in:
metalgearsloth
2021-11-03 11:27:39 +11:00
committed by GitHub
parent 9797f3d88c
commit 3a415e1051
2 changed files with 5 additions and 5 deletions

View File

@@ -113,8 +113,8 @@ namespace Content.Client.NodeContainer
var cursorBox = Box2.CenteredAround(mouseWorldPos, (nodeSize, nodeSize));
// Group visible nodes by grid tiles.
var worldBounds = overlayDrawArgs.WorldBounds;
_lookup.FastEntitiesIntersecting(map, ref worldBounds, entity =>
var worldAABB = overlayDrawArgs.WorldAABB;
_lookup.FastEntitiesIntersecting(map, ref worldAABB, entity =>
{
if (!_system.Entities.TryGetValue(entity.Uid, out var nodeData))
return;