mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 13:37:47 +03:00
Remove some obsolete AppearanceComponent method usages (#13726)
This commit is contained in:
@@ -14,7 +14,7 @@ public sealed class MechAssemblyVisualizerSystem : VisualizerSystem<MechAssembly
|
||||
{
|
||||
base.OnAppearanceChange(uid, component, ref args);
|
||||
|
||||
if (!args.Component.TryGetData(MechAssemblyVisuals.State, out int stage))
|
||||
if (!AppearanceSystem.TryGetData<int>(uid, MechAssemblyVisuals.State, out var stage, args.Component))
|
||||
return;
|
||||
|
||||
var state = component.StatePrefix + stage;
|
||||
|
||||
Reference in New Issue
Block a user