Crash on viewing result: divided by zero
Water-Moon opened this issue ยท 1 comments
Describe the bug
When the game lags a lot and profile is only running for a short period(less than the time of 1 tick), a crash could occur because in the calculation it is divided by 0 tick.
SpongeForge Not present.
Game Version 1.12.2
Forge 14.23.5.2838
LagGoggles FAT-1.12.2-4.8
To Reproduce
- Make an extremely extraordinary magnificant huge lag machine,
- Now choose to profile for 5 seconds, and choose to profile "World"
- Try to open the "Analyze" screen
- Your game crashed.
Suggest: Add if statement to check if the tick amount during the profiling period is zero.
Crash Report
https://paste.dimdev.org/egarajumid.mccrash
edit reason: typo
Should be fixed in #86