-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
f1129e9
commit 383aa58
Showing
4 changed files
with
12 additions
and
12 deletions.
There are no files selected for viewing
11 changes: 6 additions & 5 deletions
11
forge/src/main/java/net/blay09/mods/kuma/forge/ForgeKumaAPI.java
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,16 @@ | ||
package net.blay09.mods.kuma.forge; | ||
|
||
import net.minecraftforge.api.distmarker.Dist; | ||
import net.minecraftforge.fml.DistExecutor; | ||
import net.minecraftforge.eventbus.api.IEventBus; | ||
import net.minecraftforge.fml.common.Mod; | ||
import net.minecraftforge.fml.loading.FMLEnvironment; | ||
|
||
@Mod(value = "kuma_api") | ||
public class ForgeKumaAPI { | ||
|
||
public ForgeKumaAPI() { | ||
DistExecutor.runWhenOn(Dist.CLIENT, () -> () -> { | ||
ForgeKumaAPIClient.init(); | ||
}); | ||
public ForgeKumaAPI(IEventBus modEventBus) { | ||
if (FMLEnvironment.dist == Dist.CLIENT) { | ||
ForgeKumaAPIClient.init(modEventBus); | ||
} | ||
} | ||
} |
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
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
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 |
---|---|---|
|
@@ -46,4 +46,4 @@ plugins { | |
include("common") | ||
include("fabric") | ||
include("neoforge") | ||
//include("forge") | ||
include("forge") |