Fixes some map-saved weapons not properly loading in (#2567)

* Fix

* formatting xd
This commit is contained in:
GlassEclipse
2020-11-18 01:16:01 -06:00
committed by GitHub
parent 063db5d8d2
commit bab326a9e2
2 changed files with 8 additions and 2 deletions

View File

@@ -121,8 +121,11 @@ namespace Content.Server.GameObjects.Components.Weapon.Ranged.Barrels
{
_appearanceComponent = appearanceComponent;
}
Dirty();
}
protected override void Startup()
{
UpdateAppearance();
}

View File

@@ -200,8 +200,11 @@ namespace Content.Server.GameObjects.Components.Weapon.Ranged.Barrels
var magEntity = Owner.EntityManager.SpawnEntity(_magFillPrototype, Owner.Transform.Coordinates);
_magazineContainer.Insert(magEntity);
}
Dirty();
}
protected override void Startup()
{
UpdateAppearance();
}