Closed Xylonity closed 5 days ago
Oh my goodness me! This will take me some time to get merged and actually upload the update(I'm working really hard on finishing another mod before updating the rest of my mods to 1.21, then coming back to this one), but I really appreciate it!
I've never heard of NPATH complexity before until now, but I appreciate you telling me about it and showing me how to reduce it!
I've left some notes on things I feel are important in case you are curious(I think I accidentally made it a review, don't worry about that, that was my mistake).
Hiya! Sorry for the long wait, but I really appreciate your help and your willingness to teach me new things! I'm not sure when this update will be uploaded, but I'm feeling randomly motivated to update this mod today so we'll see how far I make it.
Thanks again!
Cool! If you need something i'm willing to help :)
The concept of having multiple methods for each explosion is cool, but that increases duplication since they essentially contain the same logic (the two functional ones so far). I haven't modified anything of that anyways tho.
I refactored some of the code into separate methods to reduce the number of processing cycles and thus lower the NPATH complexity. I haven't modified any original comments; I only added volatile constants as arguments in some LOGGER instances to prevent errors when writing data to the dedicated log file. And I also added logs in the configuration generator because it's better to avoid throwing empty exceptions.