mirror of
https://github.com/FatherToast/SpecialMobs.git
synced 2025-05-02 18:25:01 +00:00
prep for release
This commit is contained in:
parent
367f73f370
commit
6bb42590c0
2 changed files with 4 additions and 3 deletions
|
@ -3,7 +3,7 @@
|
||||||
org.gradle.jvmargs=-Xmx3G
|
org.gradle.jvmargs=-Xmx3G
|
||||||
org.gradle.daemon=false
|
org.gradle.daemon=false
|
||||||
# Mod version (mc_version-mod_version)
|
# Mod version (mc_version-mod_version)
|
||||||
mod_version=1.0.1
|
mod_version=1.0.0
|
||||||
mc_version=1.16.5
|
mc_version=1.16.5
|
||||||
# Dependencies
|
# Dependencies
|
||||||
forge_version=36.2.35
|
forge_version=36.2.35
|
||||||
|
|
|
@ -14,15 +14,16 @@ import net.minecraftforge.fml.ModLoadingContext;
|
||||||
import net.minecraftforge.fml.common.Mod;
|
import net.minecraftforge.fml.common.Mod;
|
||||||
|
|
||||||
@Mod.EventBusSubscriber( value = Dist.CLIENT, modid = SpecialMobs.MOD_ID, bus = Mod.EventBusSubscriber.Bus.FORGE )
|
@Mod.EventBusSubscriber( value = Dist.CLIENT, modid = SpecialMobs.MOD_ID, bus = Mod.EventBusSubscriber.Bus.FORGE )
|
||||||
public class ClientEventHandler {
|
public final class ClientEventHandler {
|
||||||
|
|
||||||
static void registerConfigGUIFactory() {
|
static void registerConfigGUIFactory() {
|
||||||
ModLoadingContext.get().registerExtensionPoint( ExtensionPoint.CONFIGGUIFACTORY,
|
ModLoadingContext.get().registerExtensionPoint( ExtensionPoint.CONFIGGUIFACTORY,
|
||||||
() -> ClientEventHandler.OpenConfigFolderScreen::new );
|
() -> ClientEventHandler.OpenConfigFolderScreen::new );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings( "ProtectedMemberInFinalClass" )
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public static void onGuiOpen( GuiOpenEvent event ) {
|
protected static void onGuiOpen( GuiOpenEvent event ) {
|
||||||
if( event.getGui() instanceof OpenConfigFolderScreen ) {
|
if( event.getGui() instanceof OpenConfigFolderScreen ) {
|
||||||
event.setCanceled( true );
|
event.setCanceled( true );
|
||||||
Util.getPlatform().openFile( Config.CONFIG_DIR );
|
Util.getPlatform().openFile( Config.CONFIG_DIR );
|
||||||
|
|
Loading…
Add table
Reference in a new issue