Closed Paneedah closed 5 months ago
The update in EntityCustomMob.java
enhances the ammo handling for weapon instances by initializing ammo with a local variable before associating it with weaponInstance
. Additionally, it sets the ammo tag for the corresponding itemStack
, potentially addressing issues related to ammo management and weapon drops from entities like bandits and soldiers.
File Path | Change Summary |
---|---|
.../weaponlib/ai/EntityCustomMob.java |
Initialized ammo using a local variable for weapon instance and set ammo tag for itemStack . |
Objective | Addressed | Explanation |
---|---|---|
The weapons dropped by bandits and soldiers will lead to a surge in bullets (#392) | ✅ | |
Identify and resolve incompatibilities between mods (#349, #348) | ❌ | The changes seem unrelated to mod incompatibilities. |
Address the issue with ammo counter reset when switching hands (#334) | ❌ | The changes do not directly address UI or hand-switching issues. |
Resolve the game crash on Linux with VMW Cubed modpack (#343) | ❌ | The update does not pertain to operating system-specific crashes. |
The bullet position is incorrect in the Chiappa Rhino (#398) | ❌ | Changes do not address weapon-specific bullet positioning issues. |
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
📝 Description
Creating this PR on behalf of @Koud-Wind. The aim of this PR is to fix the issue where terrorist weapon bullet count goes to 32,000.
🎯 Goals
Fix the bug
❌ Non Goals
Code cleanup is not a goal
🚦 Testing
Koud says he tested it. I am not currently home - please double check or make a quick video @Koud-Wind.
⏮️ Backwards Compatibility
Perfectly fine.
📚 Related Issues & Documents
📖 Added to documentation?
Summary by CodeRabbit