Skip to content

Commit e7f86f8

Browse files
committed
Modernize toolchain
Now requires Fabric Loader 0.16.10 even on Minecraft 1.20.1
1 parent f977660 commit e7f86f8

File tree

8 files changed

+8
-83
lines changed

8 files changed

+8
-83
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
id "architectury-plugin" version "3.4-SNAPSHOT"
3-
id "dev.architectury.loom" version "1.7-SNAPSHOT" apply false
3+
id "dev.architectury.loom" version "1.9-SNAPSHOT" apply false
44
id "maven-publish"
55
id 'com.matthewprenger.cursegradle' version '1.4.0' apply false
66
id 'com.palantir.git-version' version '1.0.0'

common/src/main/java/org/embeddedt/modernfix/common/mixin/bugfix/chunk_deadlock/EntityMixin.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package org.embeddedt.modernfix.common.mixin.bugfix.chunk_deadlock;
22

33
import com.llamalad7.mixinextras.injector.v2.WrapWithCondition;
4-
import com.llamalad7.mixinextras.injector.wrapoperation.WrapOperation;
54
import net.minecraft.server.level.ServerLevel;
65
import net.minecraft.world.entity.Entity;
76
import net.minecraft.world.level.gameevent.GameEvent;

fabric/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ configurations {
2929
dependencies {
3030
modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
3131
testImplementation "net.fabricmc:fabric-loader-junit:${rootProject.fabric_loader_version}"
32-
include(implementation(annotationProcessor("io.github.llamalad7:mixinextras-fabric:${rootProject.mixinextras_version}")))
32+
annotationProcessor("io.github.llamalad7:mixinextras-fabric:${rootProject.mixinextras_version}")
3333

3434
modCompileOnly(fabricApi.module("fabric-api-base", rootProject.fabric_api_version)) { exclude group: 'net.fabricmc', module: 'fabric-loader' }
3535
modCompileOnly(fabricApi.module("fabric-screen-api-v1", rootProject.fabric_api_version)) { exclude group: 'net.fabricmc', module: 'fabric-loader' }

fabric/src/main/java/org/embeddedt/modernfix/ModernFixPreLaunchFabric.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import net.fabricmc.loader.impl.gui.FabricGuiEntry;
66
import net.fabricmc.loader.impl.gui.FabricStatusTree;
77
import org.embeddedt.modernfix.core.ModernFixMixinPlugin;
8-
import org.embeddedt.modernfix.fabric.mappings.MappingsClearer;
98
import org.embeddedt.modernfix.spark.SparkLaunchProfiler;
109
import org.embeddedt.modernfix.util.CommonModUtil;
1110

@@ -19,9 +18,6 @@ public void onPreLaunch() {
1918
if(ModernFixMixinPlugin.instance.isOptionEnabled("feature.spark_profile_launch.OnFabric")) {
2019
CommonModUtil.runWithoutCrash(() -> SparkLaunchProfiler.start("launch"), "Failed to start profiler");
2120
}
22-
if(ModernFixMixinPlugin.instance.isOptionEnabled("perf.clear_fabric_mapping_tables.MappingsClearer")) {
23-
MappingsClearer.clear();
24-
}
2521

2622
// Prevent launching with Continuity when dynamic resources is on
2723
if(false && ModernFixMixinPlugin.instance.isOptionEnabled("perf.dynamic_resources.ContinuityCheck")

fabric/src/main/java/org/embeddedt/modernfix/fabric/mappings/MappingsClearer.java

Lines changed: 0 additions & 71 deletions
This file was deleted.

fabric/src/main/resources/fabric.mod.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
"modernfix-common.mixins.json"
4343
],
4444
"depends": {
45-
"minecraft": ">=1.16.2"
45+
"minecraft": ">=1.16.2",
46+
"fabricloader": ">=0.16.10"
4647
},
4748
"breaks": {
4849
"dashloader": "<5.0.0-beta.1"

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
org.gradle.jvmargs=-Xmx2G
33

44
junit_version=5.10.0-M1
5-
mixinextras_version=0.3.2
5+
mixinextras_version=0.4.1
66

77
mod_id=modernfix
88
minecraft_version=1.20.1
@@ -18,7 +18,7 @@ kubejs_version=1902.6.0-build.142
1818
rhino_version=1902.2.2-build.268
1919
supported_minecraft_versions=1.20.1
2020

21-
fabric_loader_version=0.14.25
21+
fabric_loader_version=0.16.10
2222
fabric_api_version=0.86.0+1.20.1
2323

2424
continuity_version=3.0.0-beta.2+1.19.3
@@ -28,7 +28,7 @@ diagonal_fences_version=4558828
2828

2929
spark_version=4587310
3030

31-
use_fabric_api_at_runtime=false
31+
use_fabric_api_at_runtime=true
3232

3333
# Look up maven coordinates when changing shadow_version
3434
shadow_version=7.1.2

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

0 commit comments

Comments
 (0)