ImmediatelyFast

ImmediatelyFast

55M Downloads

ImmediatelyFastConfig and MapMipMapMod

Jalvaviel opened this issue ยท 2 comments

commented

Hi, I'm the creator of MapMipMapMod, I think you already know my project, so I'll get straight to the point.
Is there a reason why you changed the map_atlas_size to a public int in a config class? I handle the atlas sizes dynamically on my mod, and I need them to change without having to restart the game, so I can't just reassign the value in ImmediatelyFast from my mod's config.
Also, the value seems to be read only in MapAtlasTexture. Basically it creates FINAL int and gets the value statically on declaration, instead of directly using the value provided from ImmediatelyFastConfig (which isn't final).
The old approach of my mod changed the constant values in the places ImmediatelyFast used constants like the atlas size, the maps per atlas, etc. But now I can't use it since the mixin can't find the target constant.
Is there a way I can target and substitute it on runtime like I did before?
Thanks in advance.

commented

The value in the ImmediatelyFast config is only read on startup (As is every other value in the config). You should be able to just redirect all fields access of MapAtlasTexture.ATLAS_SIZE to your own code

commented

@Jalvaviel Has this been resolved?