Predicted movement opening lockers (#24937)

Relay wasn't really networked properly and this annoys me.

EntityStorage is still pretty skrunkly but this fixes the main issue I think.
This commit is contained in:
metalgearsloth
2024-02-04 13:23:16 +11:00
committed by GitHub
parent 7d1567281f
commit 042feae2e9
4 changed files with 20 additions and 6 deletions

View File

@@ -33,6 +33,7 @@ public sealed class EntityStorageSystem : SharedEntityStorageSystem
base.Initialize();
/* CompRef things */
SubscribeLocalEvent<EntityStorageComponent, EntityUnpausedEvent>(OnEntityUnpausedEvent);
SubscribeLocalEvent<EntityStorageComponent, ComponentInit>(OnComponentInit);
SubscribeLocalEvent<EntityStorageComponent, ComponentStartup>(OnComponentStartup);
SubscribeLocalEvent<EntityStorageComponent, ActivateInWorldEvent>(OnInteract, after: new[] { typeof(LockSystem) });