Skip to content

Commit 992c5b8

Browse files
committed
change: Update for Sodium 0.8.1 & Enable NeoForge builds
1 parent a9a6b7b commit 992c5b8

10 files changed

Lines changed: 47 additions & 121 deletions

File tree

.github/workflows/publish.yml

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -25,34 +25,34 @@ jobs:
2525
env:
2626
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
2727
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
28-
# - name: Publish NeoForge to Modrinth, CurseForge & GitHub
29-
# uses: Kir-Antipov/mc-publish@v3.3.0
30-
# with:
31-
# modrinth-id: PtjYWJkn
32-
# modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
33-
#
34-
# curseforge-id: 447673
35-
# curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
36-
#
37-
# github-token: ${{ secrets.GITHUB_TOKEN }}
38-
#
39-
# name: '[NeoForge] ${{ github.event.release.name }}'
40-
# version: '${{ github.event.release.tag_name }}+neoforge'
41-
# version-type: release
42-
#
43-
# game-versions: '1.21.5'
44-
#
45-
# loaders: neoforge
46-
#
47-
# dependencies: |
48-
# sodium
49-
# reeses-sodium-options(optional)
50-
# irisshaders(optional)
51-
# iris(optional)
52-
#
53-
# files: |
54-
# neoforge/build/libs/!(*-@(dev|sources|javadoc|dev-shadow)).jar
55-
# neoforge/build/libs/*-@(dev|sources|javadoc|dev-shadow).jar
28+
- name: Publish NeoForge to Modrinth, CurseForge & GitHub
29+
uses: Kir-Antipov/mc-publish@v3.3.0
30+
with:
31+
modrinth-id: PtjYWJkn
32+
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}
33+
34+
curseforge-id: 447673
35+
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}
36+
37+
github-token: ${{ secrets.GITHUB_TOKEN }}
38+
39+
name: '[NeoForge] ${{ github.event.release.name }}'
40+
version: '${{ github.event.release.tag_name }}+neoforge'
41+
version-type: release
42+
43+
game-versions: '1.21.11'
44+
45+
loaders: neoforge
46+
47+
dependencies: |
48+
sodium
49+
reeses-sodium-options(optional)
50+
irisshaders(optional)
51+
iris(optional)
52+
53+
files: |
54+
neoforge/build/libs/!(*-@(dev|sources|javadoc|dev-shadow)).jar
55+
neoforge/build/libs/*-@(dev|sources|javadoc|dev-shadow).jar
5656
- name: Publish Fabric to Modrinth, CurseForge & GitHub
5757
uses: Kir-Antipov/mc-publish@v3.3.0
5858
with:

build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ plugins {
44
}
55

66
val MINECRAFT_VERSION by extra { "1.21.11" }
7-
val NEOFORGE_VERSION by extra { "21.11.0-beta" }
8-
val FABRIC_LOADER_VERSION by extra { "0.18.1" }
9-
val FABRIC_API_VERSION by extra { "0.139.4+1.21.11" }
7+
val NEOFORGE_VERSION by extra { "21.11.10-beta" }
8+
val FABRIC_LOADER_VERSION by extra { "0.18.2" }
9+
val FABRIC_API_VERSION by extra { "0.140.0+1.21.11" }
1010

1111
// This value can be set to null to disable Parchment.
1212
val PARCHMENT_VERSION by extra { null }
@@ -15,7 +15,7 @@ val PARCHMENT_VERSION by extra { null }
1515
val MAVEN_GROUP by extra { "me.flashyreese.mods" }
1616
val ARCHIVE_NAME by extra { "sodium-extra" }
1717
val MOD_VERSION by extra { "0.8.0" }
18-
val SODIUM_VERSION by extra { "0.8.0+mc1.21.11" }
18+
val SODIUM_VERSION by extra { "0.8.1+mc1.21.11" }
1919

2020
allprojects {
2121
apply(plugin = "java")

common/src/main/java/me/flashyreese/mods/sodiumextra/client/SodiumExtraClientMod.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,6 @@ public static CaffeineConfig mixinConfig() {
5858
.addMixinOption("render.entity", true)
5959
.addMixinOption("sky", true)
6060
.addMixinOption("sky_colors", true)
61-
.addMixinOption("sodium", true)
62-
.addMixinOption("sodium.accessibility", true)
63-
.addMixinOption("sodium.fog", true)
64-
.addMixinOption("sodium.cloud", true)
65-
.addMixinOption("sodium.resolution", true)
66-
.addMixinOption("sodium.scrollable_page", true)
6761
.addMixinOption("stars", true)
6862
.addMixinOption("steady_debug_hud", true)
6963
.addMixinOption("sun_moon", true)
Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
package me.flashyreese.mods.sodiumextra.mixin.cloud;
22

33
import me.flashyreese.mods.sodiumextra.client.SodiumExtraClientMod;
4+
import net.minecraft.client.CloudStatus;
5+
import net.minecraft.client.renderer.CloudRenderer;
46
import net.minecraft.client.renderer.LevelRenderer;
7+
import net.minecraft.world.phys.Vec3;
58
import org.spongepowered.asm.mixin.Mixin;
69
import org.spongepowered.asm.mixin.injection.At;
7-
import org.spongepowered.asm.mixin.injection.ModifyArg;
10+
import org.spongepowered.asm.mixin.injection.Redirect;
811

912
@Mixin(LevelRenderer.class)
10-
public class MixinLevelRenderer {
11-
@ModifyArg(method = "renderLevel", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/renderer/LevelRenderer;addCloudsPass(Lcom/mojang/blaze3d/framegraph/FrameGraphBuilder;Lnet/minecraft/client/CloudStatus;Lnet/minecraft/world/phys/Vec3;JFIF)V"), index = 6)
12-
private float modifyCloudHeight(float original) {
13+
public abstract class MixinLevelRenderer {
14+
@Redirect(method = {"method_62205", "lambda$addCloudsPass$3"}, require = 1, at = @At(value = "INVOKE", target = "Lnet/minecraft/client/renderer/CloudRenderer;render(ILnet/minecraft/client/CloudStatus;FLnet/minecraft/world/phys/Vec3;JF)V"))
15+
private void modifyCloudHeight(CloudRenderer instance, int i, CloudStatus cloudStatus, float f, Vec3 vec3, long l, float g) {
1316
// todo: don't force overwrite
14-
return SodiumExtraClientMod.options().extraSettings.cloudHeight;
17+
instance.render(i, cloudStatus, SodiumExtraClientMod.options().extraSettings.cloudHeight, vec3, l, g);
1518
}
1619
}

common/src/main/java/me/flashyreese/mods/sodiumextra/mixin/sodium/accessibility/MixinSodiumGameOptionPages.java

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

common/src/main/java/me/flashyreese/mods/sodiumextra/mixin/sodium/fog/MixinOcclusionCuller.java

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

common/src/main/resources/sodium-extra.mixins.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
"render.entity.MixinPaintingEntityRenderer",
3737
"sky.MixinSkyRenderer",
3838
"sky_colors.MixinAtmosphericFogEnvironment",
39-
"sodium.fog.MixinOcclusionCuller",
4039
"steady_debug_hud.MixinDebugScreenOverlay",
4140
"toasts.MixinToastManager"
4241
],

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
],
5656
"depends": {
5757
"fabricloader": ">=0.18",
58-
"sodium": ">=0.8.0",
58+
"sodium": ">=0.8.1",
5959
"minecraft": ">=1.21.11"
6060
},
6161
"breaks": {

neoforge/src/main/resources/META-INF/neoforge.mods.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,12 @@ side = "CLIENT"
2626
[[dependencies.sodium_extra]]
2727
modId = "sodium"
2828
type = "required"
29-
versionRange = "[0.8.0,)"
29+
versionRange = "[0.8.1,)"
3030
ordering = "NONE"
3131
side = "CLIENT"
3232

3333
[[mixins]]
34-
config = "sodium-extra.mixins.json"
34+
config = "sodium-extra.mixins.json"
35+
36+
[modproperties.sodium_extra]
37+
"sodium:config_api_user" = "me.flashyreese.mods.sodiumextra.client.config.SodiumExtraConfig"

settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ pluginManagement {
1010

1111
include("common")
1212
include("fabric")
13-
//include("neoforge")
13+
include("neoforge")

0 commit comments

Comments
 (0)