From 8b96b759605eb2e0d4a95318cd3f009d75a21146 Mon Sep 17 00:00:00 2001 From: dnqbob Date: Wed, 18 Oct 2023 10:05:51 +0800 Subject: [PATCH] LeavesTrails only works when actor inworld --- OpenRA.Mods.Common/Traits/Render/LeavesTrails.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Traits/Render/LeavesTrails.cs b/OpenRA.Mods.Common/Traits/Render/LeavesTrails.cs index ed75b4b401..255c534897 100644 --- a/OpenRA.Mods.Common/Traits/Render/LeavesTrails.cs +++ b/OpenRA.Mods.Common/Traits/Render/LeavesTrails.cs @@ -99,7 +99,7 @@ namespace OpenRA.Mods.Common.Traits.Render void ITick.Tick(Actor self) { - if (IsTraitDisabled) + if (!self.IsInWorld || IsTraitDisabled) return; wasStationary = !isMoving;