Skip to content

Commit

Permalink
Update FML (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
Technici4n authored Nov 2, 2023
1 parent 7357532 commit e0f9b0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jetbrains_annotations_version=24.0.1
slf4j_api_version=2.0.7
apache_maven_artifact_version=3.8.5
jarjar_version=0.4.0
fancy_mod_loader_version=1.0.2
fancy_mod_loader_version=1.0.9
mojang_logging_version=1.1.1
log4j_version=2.19.0
guava_version=31.1.2-jre
Expand Down
5 changes: 2 additions & 3 deletions src/main/java/net/neoforged/neoforge/common/NeoForgeMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ public static void enableMilkFluid() {
enableMilkFluid = true;
}

public NeoForgeMod() {
public NeoForgeMod(IEventBus modEventBus, Dist dist) {
LOGGER.info(NEOFORGEMOD, "NeoForge mod loading, version {}, for MC {} with MCP {}", NeoForgeVersion.getVersion(), NeoFormVersion.getMCVersion(), NeoFormVersion.getMCPVersion());
ForgeSnapshotsMod.logStartupWarning();

Expand All @@ -438,7 +438,6 @@ public NeoForgeMod() {
CrashReportCallables.registerCrashCallable("FML", NeoForgeVersion::getSpec);
CrashReportCallables.registerCrashCallable("NeoForge", () -> NeoForgeVersion.getGroup() + ":" + NeoForgeVersion.getVersion());

final IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus();
// Forge-provided datapack registries
modEventBus.addListener((DataPackRegistryEvent.NewRegistry event) -> {
event.dataPackRegistry(ForgeRegistries.Keys.BIOME_MODIFIERS, BiomeModifier.DIRECT_CODEC);
Expand Down Expand Up @@ -477,7 +476,7 @@ public NeoForgeMod() {

UsernameCache.load();
TierSortingRegistry.init();
if (FMLEnvironment.dist == Dist.CLIENT) ClientCommandHandler.init();
if (dist == Dist.CLIENT) ClientCommandHandler.init();
DualStackUtils.initialise();

ForgeRegistries.ITEMS.tags().addOptionalTagDefaults(Tags.Items.ENCHANTING_FUELS, Set.of(ForgeRegistries.ITEMS.getDelegateOrThrow(Items.LAPIS_LAZULI)));
Expand Down

0 comments on commit e0f9b0b

Please sign in to comment.