Skip to content

Commit 154d85b

Browse files
authored
Merge pull request #53 from tildejustin/1.15.2
1.15.2 - srapi removals and customizable chunk builder threads
2 parents b1f8194 + 1828396 commit 154d85b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+437
-2071
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: checkout repository
1515
uses: actions/checkout@v4
1616
- name: validate gradle wrapper
17-
uses: gradle/wrapper-validation-action@v1
17+
uses: gradle/actions/wrapper-validation@v4
1818
- name: setup java
1919
uses: actions/setup-java@v4
2020
with:

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ bin/
2222

2323
# fabric
2424

25-
run/
25+
run/

build.gradle

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id "fabric-loom" version "1.5-SNAPSHOT"
2+
id "fabric-loom" version "1.9-SNAPSHOT"
33
id "maven-publish"
44
}
55

@@ -14,10 +14,17 @@ loom {
1414
accessWidenerPath = file("src/main/resources/sodium.accesswidener")
1515
}
1616

17+
repositories {
18+
maven { url "https://jitpack.io" }
19+
}
20+
1721
dependencies {
1822
minecraft "com.mojang:minecraft:$minecraft_version"
1923
mappings "net.fabricmc:yarn:$yarn_mappings:v2"
2024
modImplementation "net.fabricmc:fabric-loader:$loader_version"
25+
modImplementation ("com.github.contariaa:speedrunapi:$speedrunapi_version") {
26+
transitive = false
27+
}
2128
}
2229

2330
processResources {
@@ -28,6 +35,7 @@ processResources {
2835

2936
tasks.withType(JavaCompile).configureEach {
3037
options.encoding = "UTF-8"
38+
options.compilerArgs << "-XDenableSunApiLintControl" << "-Xlint:-sunapi"
3139
}
3240

3341
java {

gradle.properties

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ org.gradle.jvmargs = -Xmx2G
22
org.gradle.parallel = true
33
org.gradle.caching = true
44

5-
mod_version = 1.3.1
5+
mod_version = 1.5.0
66

77
minecraft_version = 1.15.2
88
yarn_mappings = 1.15.2+build.17
9-
loader_version = 0.15.6
9+
loader_version = 0.16.9
1010
target_version = 1.15.2
11+
# https://jitpack.io/#kingcontaria/speedrunapi
12+
speedrunapi_version = 45fa51d142
1113
archives_name = sodium
1214
maven_group = me.jellysquid.mods

gradle/wrapper/gradle-wrapper.jar

121 Bytes
Binary file not shown.

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.5-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-all.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 12 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/java/me/jellysquid/mods/sodium/client/SodiumClientMod.java

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import java.io.File;
1212

1313
public class SodiumClientMod implements ClientModInitializer {
14-
private static SodiumGameOptions CONFIG;
14+
public static SodiumGameOptions CONFIG;
1515
private static Logger LOGGER;
1616

1717
private static String MOD_VERSION;
@@ -24,14 +24,11 @@ public void onInitializeClient() {
2424

2525
MOD_VERSION = mod.getMetadata()
2626
.getVersion()
27-
.getFriendlyString();
27+
.getFriendlyString()
28+
.split("\\+")[0];
2829
}
2930

3031
public static SodiumGameOptions options() {
31-
if (CONFIG == null) {
32-
CONFIG = loadConfig();
33-
}
34-
3532
return CONFIG;
3633
}
3734

@@ -43,13 +40,6 @@ public static Logger logger() {
4340
return LOGGER;
4441
}
4542

46-
private static SodiumGameOptions loadConfig() {
47-
SodiumGameOptions config = SodiumGameOptions.load(new File("config/sodium-options.json"));
48-
onConfigChanged(config);
49-
50-
return config;
51-
}
52-
5343
public static void onConfigChanged(SodiumGameOptions options) {
5444
UnsafeUtil.setEnabled(options.advanced.useMemoryIntrinsics);
5545
}

0 commit comments

Comments
 (0)