-
Notifications
You must be signed in to change notification settings - Fork 8
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
3 changed files
with
21 additions
and
29 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
24 changes: 11 additions & 13 deletions
24
src/main/kotlin/com/chattriggers/ctjs/internal/compat/ModMenuEntry.kt
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 |
---|---|---|
@@ -1,15 +1,13 @@ | ||
package com.chattriggers.ctjs.internal.compat | ||
|
||
//#if MC<12004 | ||
//$$ import com.chattriggers.ctjs.api.Config | ||
//$$ import com.terraformersmc.modmenu.api.ConfigScreenFactory | ||
//$$ import com.terraformersmc.modmenu.api.ModMenuApi | ||
//$$ | ||
//$$ internal class ModMenuEntry : ModMenuApi { | ||
//$$ override fun getModConfigScreenFactory(): ConfigScreenFactory<*> { | ||
//$$ return ConfigScreenFactory { | ||
//$$ Config.gui() | ||
//$$ } | ||
//$$ } | ||
//$$ } | ||
//#endif | ||
import com.chattriggers.ctjs.api.Config | ||
import com.terraformersmc.modmenu.api.ConfigScreenFactory | ||
import com.terraformersmc.modmenu.api.ModMenuApi | ||
|
||
internal class ModMenuEntry : ModMenuApi { | ||
override fun getModConfigScreenFactory(): ConfigScreenFactory<*> { | ||
return ConfigScreenFactory { | ||
Config.gui() | ||
} | ||
} | ||
} |
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