Closed Paneedah closed 5 months ago
The recent update focuses on enhancing the player's zoom functionality within a game, specifically by optimizing how the field of view (fov) is calculated and adjusting the zoom behavior under different scenarios. This was achieved by importing new event classes to better handle zoom-related events and by refining the logic within the zoom
method, ensuring a smoother and more intuitive zoom experience for the player.
File | Change Summary |
---|---|
src/.../weaponlib/WeaponEventHandler.java |
Introduced new event class imports from net.minecraftforge.client.event , restructured the zoom method for improved zoom condition handling, and refined fov calculation. |
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
This PR aims to fix issue #377. The problem was that when you started to reload, it wouldn't correctly reset your FOV.
🎯 Goals
Make the screen zoom back out accordingly while reloading.
❌ Non Goals
It is not a goal of this PR to clean up code or fix any other reload issue
🚦 Testing
Tested within and outside of dev-env.
⏮️ Backwards Compatibility
Perfectly backwards compatible.
📚 Related Issues & Documents
377
📖 Added to documentation?
Summary by CodeRabbit