Do not ignite zero coordinates because of items inside containers. (#292)
Items inside containers have zero coordinates so we shouldn't use them in the fire spread system. Fixes #277
This commit is contained in:
@@ -98,6 +98,10 @@ public sealed partial class CP14FireSpreadSystem : EntitySystem
|
||||
if (!TryComp<MapGridComponent>(xform.GridUid, out var grid))
|
||||
return;
|
||||
|
||||
// Ignore items inside containers
|
||||
if (!HasComp<MapGridComponent>(xform.ParentUid))
|
||||
return;
|
||||
|
||||
var localPos = xform.Coordinates.Position;
|
||||
var tileRefs = _mapSystem.GetLocalTilesIntersecting(grid.Owner,
|
||||
grid,
|
||||
|
||||
Reference in New Issue
Block a user