Replace ItemSlotChangedEvent with EntInsertedIntoContainerMessage (#11934)

This commit is contained in:
Leon Friedrich
2022-10-16 09:03:37 +13:00
committed by GitHub
parent 8f6b2f4e77
commit 581a805063
3 changed files with 3 additions and 14 deletions

View File

@@ -18,7 +18,7 @@ public abstract partial class SharedGunSystem
{
SubscribeLocalEvent<ChamberMagazineAmmoProviderComponent, TakeAmmoEvent>(OnChamberMagazineTakeAmmo);
SubscribeLocalEvent<ChamberMagazineAmmoProviderComponent, GetVerbsEvent<Verb>>(OnMagazineVerb);
SubscribeLocalEvent<ChamberMagazineAmmoProviderComponent, ItemSlotChangedEvent>(OnMagazineSlotChange);
SubscribeLocalEvent<ChamberMagazineAmmoProviderComponent, EntInsertedIntoContainerMessage>(OnMagazineSlotChange);
SubscribeLocalEvent<ChamberMagazineAmmoProviderComponent, UseInHandEvent>(OnMagazineUse);
SubscribeLocalEvent<ChamberMagazineAmmoProviderComponent, ExaminedEvent>(OnChamberMagazineExamine);
}