Skip to content

Commit

Permalink
Fix Sodium compat outside of development environment
Browse files Browse the repository at this point in the history
  • Loading branch information
MineGame159 committed Aug 25, 2024
1 parent 8f83d5d commit 902308f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ dependencies {
modCompileOnly("maven.modrinth:lithium:${project.lithium_version}") { transitive = false }
modCompileOnly("maven.modrinth:iris:${project.iris_version}") { transitive = false }
//modCompileOnly("io.vram:canvas-fabric-mc119:1.0.+") { transitive = false } // TODO: 1.19.3
modCompileOnly("maven.modrinth:indium:${project.indium_version}") { transitive = false }
modCompileOnly("de.florianmichael:ViaFabricPlus:${project.viafabricplus_version}") { transitive = false }

// Baritone (https://github.com/MeteorDevelopment/baritone)
Expand Down
3 changes: 0 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ lithium_version=mc1.21.1-0.13.0
# Iris (https://github.com/IrisShaders/Iris)
iris_version=1.7.3+1.21

# Indium (https://github.com/comp500/Indium)
indium_version=1.0.35+mc1.21

# Orbit (https://github.com/MeteorDevelopment/orbit)
orbit_version=0.2.4

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

@Mixin(value = BlockRenderer.class, remap = false)
@Mixin(value = BlockRenderer.class)
public abstract class SodiumBlockRendererMixin {
@Inject(method = "renderModel", at = @At(value = "INVOKE", target = "Lnet/caffeinemc/mods/sodium/client/model/color/ColorProviderRegistry;getColorProvider(Lnet/minecraft/block/Block;)Lnet/caffeinemc/mods/sodium/client/model/color/ColorProvider;", shift = At.Shift.AFTER), cancellable = true)
private void onRenderModel(BakedModel model, BlockState state, BlockPos pos, BlockPos origin, CallbackInfo info) {
Expand Down

0 comments on commit 902308f

Please sign in to comment.