fucking forge

This commit is contained in:
Octol1ttle 2024-01-18 19:45:56 +05:00
parent 3a93c3beae
commit a13706f240
Signed by: Octol1ttle
GPG key ID: B77C34313AEE1FFF
3 changed files with 7 additions and 5 deletions

View file

@ -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"
],

View file

@ -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();
}

View file

@ -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 = ""