From 48ca9153af6fd2431e8fb11745da9dfbefe62522 Mon Sep 17 00:00:00 2001 From: ReeZer2 <63300653+ReeZer2@users.noreply.github.com> Date: Fri, 6 Dec 2024 20:47:04 +0200 Subject: [PATCH] FIX: Infinity spawn entities on tile (#2307) --- .../Chemistry/TileReactions/CreateEntityTileReaction.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Content.Server/Chemistry/TileReactions/CreateEntityTileReaction.cs b/Content.Server/Chemistry/TileReactions/CreateEntityTileReaction.cs index 0249b6255a2d98..be032a79ed62be 100644 --- a/Content.Server/Chemistry/TileReactions/CreateEntityTileReaction.cs +++ b/Content.Server/Chemistry/TileReactions/CreateEntityTileReaction.cs @@ -45,8 +45,13 @@ public FixedPoint2 TileReact(TileRef tile, { if (Whitelist != null) { + //ss220 infinity entities on tile fix start + var entityLookup = entityManager.System(); + 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(); if (whitelistSystem.IsWhitelistPass(Whitelist, ent))