Skip to content

Commit

Permalink
Enable Forge and NeoForge modules, update Minecraft requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
LostLuma committed Oct 30, 2024
1 parent e19ce57 commit a3388f7
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ minecraft_version = 1.21.2
minecraft_version_min = 1.21.2
minecraft_version_max = 1.21.2

enabled_platforms=fabric,quilt
enabled_platforms=fabric,forge,neoforge,quilt
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[versions]
minecraft = "1.21.2-rc1"
minecraft = "1.21.3"

# Platform libraries

fabric_loader = "0.15.10"
fabric_api = "0.102.2+1.21.2"

forge = "1.21-51.0.33"
forge = "1.21.3-53.0.7"

neoforge = "21.0.143"
neoforge = "21.3.0-beta"

quilt_loader = "0.25.0"

Expand Down
2 changes: 1 addition & 1 deletion platforms/fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
},
"depends": {
"fabricloader": ">=0.15.10",
"minecraft": ">=1.21.2-alpha.24.33.a",
"minecraft": ">=1.21.2",
"mixinextras": ">=0.3.2",
"fabric-resource-loader-v0": "*",
"fabric-lifecycle-events-v1": "*"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
public class DynamicFPSForgeMod {
private static final List<Platform.StartTickEvent> TICK_EVENT_LISTENERS = new ArrayList<>();

public DynamicFPSForgeMod() {
public DynamicFPSForgeMod(FMLJavaModLoadingContext context) {
if (FMLLoader.getDist().isDedicatedServer()) {
return;
}

DynamicFPSMod.init();

ModLoadingContext.get().registerExtensionPoint(
context.registerExtensionPoint(
ConfigScreenHandler.ConfigScreenFactory.class,
() -> new ConfigScreenHandler.ConfigScreenFactory(
(minecraft, screen) -> DynamicFPSMod.getConfigScreen(screen)
Expand All @@ -37,7 +37,7 @@ public DynamicFPSForgeMod() {
MinecraftForge.EVENT_BUS.addListener(this::onClientTick);
// MinecraftForge.EVENT_BUS.addListener(this::renderGuiOverlay);

FMLJavaModLoadingContext.get().getModEventBus().addListener(this::registerKeyMappings);
context.getModEventBus().addListener(this::registerKeyMappings);
}

/*
Expand Down
2 changes: 1 addition & 1 deletion platforms/forge/src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,6 @@ file="META-INF/accesstransformer.cfg"
[[dependencies.dynamic_fps]]
modId = "minecraft"
mandatory = true
versionRange = "[1.21.0,)"
versionRange = "[1.21.2,)"
ordering = "NONE"
side = "CLIENT"
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,6 @@ file="META-INF/accesstransformer.cfg"
[[dependencies.dynamic_fps]]
modId = "minecraft"
mandatory = true
versionRange = "[1.21.0,)"
versionRange = "[1.21.2,)"
ordering = "NONE"
side = "CLIENT"
2 changes: 1 addition & 1 deletion platforms/quilt/src/main/resources/quilt.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
},
{
"id": "minecraft",
"versions": ">=1.21.2-alpha.24.33.a"
"versions": ">=1.21.2"
},
{
"id": "mixinextras",
Expand Down
4 changes: 2 additions & 2 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ includeBuild("build-logic")

include(":platforms:common")
include(":platforms:fabric")
// include(":platforms:forge")
// include(":platforms:neoforge")
include(":platforms:forge")
include(":platforms:neoforge")
include(":platforms:quilt")
include(":platforms:textile")

0 comments on commit a3388f7

Please sign in to comment.