Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear Ammo before Clearing Items #4

Merged
merged 1 commit into from
Jul 31, 2024
Merged

Clear Ammo before Clearing Items #4

merged 1 commit into from
Jul 31, 2024

Conversation

x3rt
Copy link

@x3rt x3rt commented Jul 28, 2024

Currently there is a bug where Clearing a Player's inventory drops some amount of ammunition.
This is due to BodyArmorUtils.RemoveEverythingExceedingLimits getting called in OnRemoved in InventorySystem.Items.Armor.BodyArmor
Meaning that when the items are cleared, and armor gets removed, any additional ammo that cannot be carried will be dropped first, so when ClearAmmo is called it doesn't remove the dropped ammo

@github-actions github-actions bot added the API label Jul 28, 2024
@louis1706
Copy link

weird i remind already have done this lol

@louis1706 louis1706 merged commit 4654bf2 into ExMod-Team:dev Jul 31, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants