Blood-Red Magboots now correctly show if magboots are active (#38013)

* Change JetPack Item Visuals to use GenericVisualizer instead of AppearanceChangeEvents

* Fix YAML indentation for jetpacks.yml
This commit is contained in:
Funce
2025-06-04 23:10:06 +12:00
committed by GitHub
parent 146ba7edbb
commit 148fb5ca23
3 changed files with 38 additions and 33 deletions

View File

@@ -34,10 +34,6 @@ public sealed class JetpackSystem : SharedJetpackSystem
{
Appearance.TryGetData<bool>(uid, JetpackVisuals.Enabled, out var enabled, args.Component);
var state = "icon" + (enabled ? "-on" : "");
if (args.Sprite != null)
_sprite.LayerSetRsiState((uid, args.Sprite), 0, state);
if (TryComp<ClothingComponent>(uid, out var clothing))
_clothing.SetEquippedPrefix(uid, enabled ? "on" : null, clothing);
}