generated from isXander/FabricModTemplate
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
268 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
- Update to 1.19.3 | ||
- Add options category to sodium options & new modmenu config. | ||
- New option: Lenient options: (previously default behaviour) replaces broken options with placeholder option | ||
- New option: Hard crash: (previously default on) Crashes the game to generate crash report instead of a nice warning and the ability to just display actual Sodium | ||
- Add warning screen to proceed to default sodium gui upon failure | ||
- Fix moreculling 0.12+ compatibility | ||
- Handle errors a lot nicer in stacktrace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package dev.isxander.xso; | ||
|
||
import dev.isxander.xso.config.XsoConfig; | ||
import net.fabricmc.api.ClientModInitializer; | ||
|
||
public class ModEntrypoint implements ClientModInitializer { | ||
@Override | ||
public void onInitializeClient() { | ||
XsoConfig.INSTANCE.load(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/main/java/dev/isxander/xso/config/ModMenuEntrypoint.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package dev.isxander.xso.config; | ||
|
||
import com.terraformersmc.modmenu.api.ConfigScreenFactory; | ||
import com.terraformersmc.modmenu.api.ModMenuApi; | ||
import dev.isxander.yacl.api.YetAnotherConfigLib; | ||
import net.minecraft.text.Text; | ||
|
||
public class ModMenuEntrypoint implements ModMenuApi { | ||
@Override | ||
public ConfigScreenFactory<?> getModConfigScreenFactory() { | ||
return parent -> YetAnotherConfigLib.createBuilder() | ||
.title(Text.translatable("xso.title")) | ||
.category(XsoConfig.getConfigCategory()) | ||
.save(XsoConfig.INSTANCE::save) | ||
.build().generateScreen(parent); | ||
} | ||
} |
Oops, something went wrong.