Skip to content

Commit d00f92e

Browse files
authored
Merge pull request #13 from Tellinq/kotlin-mv/legacy-entrypoints
Kotlin Multi Version: Fix <=1.12.2 Forge entrypoints not working
2 parents 19a0896 + eef3a9e commit d00f92e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/kotlin/org/polyfrost/example/ExampleEntrypoint.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ class ExampleEntrypoint
5555

5656
//#if FABRIC
5757
//$$ override
58+
//#elseif FORGE && MC <= 1.12.2
59+
@Mod.EventHandler
5860
//#endif
5961
fun onInitialize(
6062
//#if FORGE-LIKE
@@ -70,6 +72,8 @@ class ExampleEntrypoint
7072

7173
//#if FABRIC
7274
//$$ override
75+
//#elseif FORGE && MC <= 1.12.2
76+
@Mod.EventHandler
7377
//#endif
7478
fun onInitializeClient(
7579
//#if FORGE-LIKE
@@ -89,6 +93,8 @@ class ExampleEntrypoint
8993

9094
//#if FABRIC
9195
//$$ override
96+
//#elseif FORGE && MC <= 1.12.2
97+
@Mod.EventHandler
9298
//#endif
9399
fun onInitializeServer(
94100
//#if FORGE-LIKE

0 commit comments

Comments
 (0)