mirror of
https://github.com/FatherToast/SpecialMobs.git
synced 2025-04-24 14: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.daemon=false
|
||||
# Mod version (mc_version-mod_version)
|
||||
mod_version=1.0.1
|
||||
mod_version=1.0.0
|
||||
mc_version=1.16.5
|
||||
# Dependencies
|
||||
forge_version=36.2.35
|
||||
|
|
|
@ -14,15 +14,16 @@ import net.minecraftforge.fml.ModLoadingContext;
|
|||
import net.minecraftforge.fml.common.Mod;
|
||||
|
||||
@Mod.EventBusSubscriber( value = Dist.CLIENT, modid = SpecialMobs.MOD_ID, bus = Mod.EventBusSubscriber.Bus.FORGE )
|
||||
public class ClientEventHandler {
|
||||
public final class ClientEventHandler {
|
||||
|
||||
static void registerConfigGUIFactory() {
|
||||
ModLoadingContext.get().registerExtensionPoint( ExtensionPoint.CONFIGGUIFACTORY,
|
||||
() -> ClientEventHandler.OpenConfigFolderScreen::new );
|
||||
}
|
||||
|
||||
@SuppressWarnings( "ProtectedMemberInFinalClass" )
|
||||
@SubscribeEvent
|
||||
public static void onGuiOpen( GuiOpenEvent event ) {
|
||||
protected static void onGuiOpen( GuiOpenEvent event ) {
|
||||
if( event.getGui() instanceof OpenConfigFolderScreen ) {
|
||||
event.setCanceled( true );
|
||||
Util.getPlatform().openFile( Config.CONFIG_DIR );
|
||||
|
|
Loading…
Add table
Reference in a new issue