Skip to content

Commit

Permalink
FIX: Infinity spawn entities on tile (#2307)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReeZer2 authored Dec 6, 2024
1 parent 32b7b7e commit 48ca915
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,13 @@ public FixedPoint2 TileReact(TileRef tile,
{
if (Whitelist != null)
{
//ss220 infinity entities on tile fix start
var entityLookup = entityManager.System<EntityLookupSystem>();
var entities = entityLookup.GetLocalEntitiesIntersecting(tile);
//ss220 infinity entities on tile fix end

int acc = 0;
foreach (var ent in tile.GetEntitiesInTile())
foreach (var ent in entities) //ss220 infinity entities on tile fix
{
var whitelistSystem = entityManager.System<EntityWhitelistSystem>();
if (whitelistSystem.IsWhitelistPass(Whitelist, ent))
Expand Down

0 comments on commit 48ca915

Please sign in to comment.