Skip to content

Commit

Permalink
update neo, use new mod ctor parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
IchHabeHunger54 committed Dec 13, 2023
1 parent f2c5474 commit 44f4e96
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ org.gradle.debug=false

minecraft_version=1.20.4
minecraft_version_range=[1.20.4,1.21)
neo_version=20.4.5-beta
neo_version=20.4.22-beta
neo_version_range=[20.4,)
loader_version_range=[1,)
mapping_channel=official
mapping_version=1.20.4

mod_id=bibliocraft
mod_name=Bibliocraft Legacy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.github.minecraftschurlimods.bibliocraft;

import com.github.minecraftschurlimods.bibliocraft.init.BCRegistries;
import net.neoforged.bus.api.IEventBus;
import net.neoforged.fml.common.Mod;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
Expand All @@ -10,7 +11,7 @@ public final class Bibliocraft {
public static final String MOD_ID = "bibliocraft";
public static final Logger LOGGER = LogManager.getLogger();

public Bibliocraft() {
BCRegistries.init();
public Bibliocraft(IEventBus modBus) {
BCRegistries.init(modBus);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ public interface BCRegistries {
/**
* Central registration method. Classloads the registration classes and registers the registries to the mod bus.
*/
static void init() {
IEventBus bus = FMLJavaModLoadingContext.get().getModEventBus();
static void init(IEventBus bus) {
BCBlocks.init();
BCItems.init();
BCCreativeTabs.init();
Expand Down

0 comments on commit 44f4e96

Please sign in to comment.