MaxenceDC / sparsestructures

A simple and configurable one-mixin mod that makes all (even datapacks and modded) structures more spread out (or more common!), essentially making them rarer/easier to find. Useful in big modpacks with a lot of structures mod to encourage exploration and make the experience more challenging or balanced.
https://modrinth.com/mod/sparsestructures
MIT License
6 stars 7 forks source link

Change config records into classes to run on 1.19 #7

Closed natpalmer-e4o4 closed 1 year ago

natpalmer-e4o4 commented 1 year ago

The changes here will allow version 2.0 to run on 1.19.2

I'm not a Java developer, I'm not a minecraft modder, so I have no idea why any of this works, or what the idiomatic way of turning a record with 'final' properties into a class with fully functional getter/setter is.

But hey, free code! :)

MaxenceDC commented 1 year ago

Well, I'm not a Java dev either, haha. I'll test your code today and will likely release it tonight. Thanks for the free code! Do you want to be credited on the mod's page?

natpalmer-e4o4 commented 1 year ago

Well, neither I'm not a Java dev either, haha. I'll test your code today and will likely release it tonight. Thanks for the free code! Do you want to be credited on the mod's page?

Nah, I'm okay. I mainly did this so I could configure structures to be a little bit less sparse in the modpack I'm working on lol

Plus, the challenge was a nice evening distraction

MaxenceDC commented 1 year ago

@natpalmer-e4o4 Now published on all platform! Thanks again! I fixed some other bugs too, and made it compatible with 1.20.x as well.