BrassAmber-Mods / BrassArmory

3 stars 1 forks source link

General Cleanup #3

Closed FireController1847 closed 2 years ago

FireController1847 commented 2 years ago

You ready boys? Here's the list of things I did. The diff is not very helpful, I'd recommend opening up the workspace if you can and seeing how everything has changed and is related. If I did good, it should feel more consistent, clean, and easy to work with. If you really want to see a diff, try checking it per-commit since each commit did its own set of cleanup.

Theoretically, little to no logic was changed in how things are handled. It should all be cosmetic except for a few minor changes I made.

Most of the changes I made are entirely cosmetic, and so if you want me to revert any of the things listed above, go ahead and let me know and I will. Or if you want something else changed for consistency or cleanliness, I'd be more than willing to do that too. Otherwise, if it's good, then I'll continue work on the Quiver.

JMilamber commented 2 years ago

(it would fall through to the next line, as in, default is dirt arrow, instead of returning null). Was this intentional logic? I need to revert this if it was.

This was intentional logic so that if another mod (or some vanilla mechanic we didn't think of) calls an empty or default ArrowType it doesn't crash the game, but instead just gives the Dirt arrow stats/item. Minecraft is weird with null values sometimes and either passes over them or just dies lol.

FireController1847 commented 2 years ago

Oh, thanks for doing that for me. Was gonna revert it tomorrow but that's even better haha