quippy-git / javamod

JavaMod Player
https://quippy-git.github.io/javamod/
GNU General Public License v3.0
9 stars 2 forks source link

Fix for macOS compatibility issue #6

Closed MasterFlomaster1 closed 4 months ago

MasterFlomaster1 commented 4 months ago

Encountered an error when attempting to run the program on macOS. The issue was related to mode.getRefreshRate() returning 0, leading to a division by 0 error.

Error stack trace:

Screenshot 2024-03-05 at 02 50 59

To resolve this, I added a check to ensure that in such cases, the default refresh rate of 60 is used. Looks good now

Screenshot 2024-03-05 at 01 54 50

Tested on macOS Monterey 12.4 and Windows 10

quippy-git commented 4 months ago

Thanks for finding this. I do not have MacOS for testing.