fix: properly support MC 1.21.4

- Also, loading screen textures will now be loaded way earlier on NeoForge :)
This commit is contained in:
Martin Prokoph
2025-12-11 20:07:24 +01:00
parent 2611a29107
commit 11c8ba6837
12 changed files with 122 additions and 43 deletions

View File

@@ -33,11 +33,11 @@ public class PuzzleGui {
Minecraft.getInstance().getTextureManager()./*? if >= 1.21.5 {*/ registerAndLoad /*?} else {*//*register*//*?}*/(PuzzleSplashScreen.LOGO, new PuzzleSplashScreen.LogoTexture(PuzzleSplashScreen.LOGO));
}));
//? if < 1.21.11 {
// PuzzleApi.addToResourceOptions(new PuzzleWidget(Component.translatable("puzzle.option.unlimited_model_rotations"), (button) -> button.setMessage(PuzzleConfig.unlimitedRotations ? YES : NO), (button) -> {
// PuzzleConfig.unlimitedRotations = !PuzzleConfig.unlimitedRotations;
// PuzzleConfig.write(MOD_ID);
// }));
//?}
/*PuzzleApi.addToResourceOptions(new PuzzleWidget(Component.translatable("puzzle.option.unlimited_model_rotations"), (button) -> button.setMessage(PuzzleConfig.unlimitedRotations ? YES : NO), (button) -> {
PuzzleConfig.unlimitedRotations = !PuzzleConfig.unlimitedRotations;
PuzzleConfig.write(MOD_ID);
}));
*///?}
PuzzleApi.addToResourceOptions(new PuzzleWidget(Component.translatable("puzzle.option.bigger_custom_models"), (button) -> button.setMessage(PuzzleConfig.biggerModels ? YES : NO), (button) -> {
PuzzleConfig.biggerModels = !PuzzleConfig.biggerModels;
PuzzleConfig.write(MOD_ID);