Skip to content

Commit

Permalink
Additional check (not sure if'll help)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxDorob committed Nov 6, 2024
1 parent 5d5c713 commit 96e7fcc
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ public override void Tick()
protected override bool CanCollideWith(Thing thing, out float dist)
{
dist = 0f;
if (thing.Destroyed)
{
return false;
}
if (!Rand.Chance(ImpactChance))
{
return false;
Expand Down

0 comments on commit 96e7fcc

Please sign in to comment.