private static void Postfix(PlayerAmmoStorage __instance, InventorySlotAmmo ammo, int clip) { if (__instance.m_playerBackpack.IsLocal) { InventoryAmmoEvents.AmmoUpdate(ammo, clip); } }
static void Postfix(InventorySlotAmmo ammo, int clip, PlayerBackpack ___m_playerBackpack) { if (___m_playerBackpack.IsLocal) { InventoryAmmoEvents.AmmoUpdate(ammo, clip); } }