fucking forge
This commit is contained in:
parent
3a93c3beae
commit
a13706f240
3 changed files with 7 additions and 5 deletions
|
@ -3,7 +3,7 @@
|
|||
"id": "knockdowns",
|
||||
"version": "${version}",
|
||||
"name": "Knockdowns",
|
||||
"description": "DNBO mechanic from Fortnite, ported to Minecraft",
|
||||
"description": "DBNO mechanic from Fortnite, ported to Minecraft",
|
||||
"authors": [
|
||||
"Octol1ttle"
|
||||
],
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package ru.octol1ttle.knockdowns.forge;
|
||||
|
||||
import dev.architectury.platform.forge.EventBuses;
|
||||
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
||||
import net.minecraftforge.eventbus.api.IEventBus;
|
||||
import net.minecraftforge.fml.common.Mod;
|
||||
import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
|
||||
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
|
||||
|
@ -13,11 +13,13 @@ import ru.octol1ttle.knockdowns.common.KnockdownsCommon;
|
|||
public class KnockdownsForge {
|
||||
public KnockdownsForge() {
|
||||
// Submit our event bus to let architectury register our content on the right time
|
||||
EventBuses.registerModEventBus(KnockdownsCommon.MOD_ID, FMLJavaModLoadingContext.get().getModEventBus());
|
||||
IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus();
|
||||
EventBuses.registerModEventBus(KnockdownsCommon.MOD_ID, modEventBus);
|
||||
modEventBus.addListener(this::onInitializeClient);
|
||||
|
||||
KnockdownsCommon.init();
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void onInitializeClient(FMLClientSetupEvent event) {
|
||||
KnockdownsClient.init();
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ version = "${version}"
|
|||
displayName = "Knockdowns"
|
||||
authors = "Octol1ttle"
|
||||
description = '''
|
||||
DNBO mechanic from Fortnite, ported to Minecraft
|
||||
DBNO mechanic from Fortnite, ported to Minecraft
|
||||
'''
|
||||
#logoFile = ""
|
||||
|
||||
|
|
Loading…
Reference in a new issue