add mod menu and neo iris support
This commit is contained in:
+1
-5
@@ -20,21 +20,17 @@
|
||||
package com.seibel.distanthorizons.fabric.wrappers.config;
|
||||
|
||||
import com.seibel.distanthorizons.common.wrappers.gui.GetConfigScreen;
|
||||
#if MC_VER != MC_1_21_11
|
||||
import com.terraformersmc.modmenu.api.ConfigScreenFactory;
|
||||
import com.terraformersmc.modmenu.api.ModMenuApi;
|
||||
#endif
|
||||
|
||||
/** For making the config show up in modmenu */
|
||||
public class ModMenuIntegration #if MC_VER != MC_1_21_11 implements ModMenuApi #endif
|
||||
public class ModMenuIntegration implements ModMenuApi
|
||||
{
|
||||
#if MC_VER != MC_1_21_11
|
||||
// For the custom config code
|
||||
@Override
|
||||
public ConfigScreenFactory<?> getModConfigScreenFactory()
|
||||
{
|
||||
return parent -> GetConfigScreen.getScreen(parent);
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user