Add reflection support for mobs, reflective vest, shuttle walls (#18186)

This commit is contained in:
avery
2023-07-30 18:07:45 -07:00
committed by GitHub
parent 8298b64a25
commit c15257fa21
6 changed files with 64 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ public sealed class ReflectSystem : SharedReflectSystem
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<ReflectComponent, EnergySwordActivatedEvent>(EnableReflect);
SubscribeLocalEvent<ReflectComponent, EnergySwordDeactivatedEvent>(DisableReflect);
SubscribeLocalEvent<ReflectComponent, ItemToggleActivatedEvent>(ShieldEnableReflect);