Fix anchoring bug (#3445)

Fixes https://github.com/space-wizards/RobustToolbox/issues/3444
This commit is contained in:
Leon Friedrich
2022-11-07 08:35:42 +13:00
committed by GitHub
parent 266223c3fd
commit c9dd27658e

View File

@@ -377,8 +377,8 @@ namespace Robust.Shared.GameObjects
get => _anchored;
set
{
// This will be set again when the transform starts, actually anchoring it.
if (LifeStage < ComponentLifeStage.Starting)
// This will be set again when the transform initializes, actually anchoring it.
if (!Initialized)
{
_anchored = value;
}