Skip to content

Instantly share code, notes, and snippets.

@magneticflux-
Created June 13, 2022 21:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save magneticflux-/16e53ccb540885622d0c0be257b86afd to your computer and use it in GitHub Desktop.
Save magneticflux-/16e53ccb540885622d0c0be257b86afd to your computer and use it in GitHub Desktop.
Effective Sodium/next (b98aca11) patch
Index: build.gradle
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/build.gradle b/build.gradle
--- a/build.gradle (revision 308a3171dcd232adcb4518689e6a24069a3a309c)
+++ b/build.gradle (date 1655155672158)
@@ -69,7 +69,7 @@
// modRuntimeOnly "com.terraformersmc:modmenu:${mod_menu_version}"
// Sodium Compat
- modCompileOnly "com.github.CaffeineMC:sodium-fabric:${sodium_version}"
+ modCompileOnly files("libs/sodium-fabric-0.5.0+mc1.19-unstable.jar")
// satin
modCompileOnly "io.github.ladysnake:satin:${satin_version}"
@@ -236,4 +236,4 @@
task release(dependsOn: [tasks.githubRelease, tasks.curseforge]) {
group = 'publishing'
description = 'Releases a new version to Github and Curseforge'
-}
\ No newline at end of file
+}
Index: src/main/java/ladysnake/effective/mixin/integration/sodium/FluidRendererMixin.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/main/java/ladysnake/effective/mixin/integration/sodium/FluidRendererMixin.java b/src/main/java/ladysnake/effective/mixin/integration/sodium/FluidRendererMixin.java
--- a/src/main/java/ladysnake/effective/mixin/integration/sodium/FluidRendererMixin.java (revision 308a3171dcd232adcb4518689e6a24069a3a309c)
+++ b/src/main/java/ladysnake/effective/mixin/integration/sodium/FluidRendererMixin.java (date 1655153111650)
@@ -1,8 +1,8 @@
package ladysnake.effective.mixin.integration.sodium;
import ladysnake.effective.client.world.WaterfallCloudGenerators;
-import me.jellysquid.mods.sodium.client.render.chunk.compile.buffers.ChunkModelBuilder;
-import me.jellysquid.mods.sodium.client.render.pipeline.FluidRenderer;
+import net.caffeinemc.sodium.render.chunk.compile.buffers.ChunkMeshBuilder;
+import net.caffeinemc.sodium.render.terrain.FluidRenderer;
import net.minecraft.fluid.FluidState;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.BlockRenderView;
@@ -14,7 +14,7 @@
@Mixin(FluidRenderer.class)
public class FluidRendererMixin {
@Inject(method = "render", at = @At("HEAD"))
- public void effective$generateWaterfall(BlockRenderView world, FluidState fluidState, BlockPos pos, BlockPos offset, ChunkModelBuilder buffers, CallbackInfoReturnable<Boolean> cir) {
+ public void effective$generateWaterfall(BlockRenderView world, FluidState fluidState, BlockPos pos, BlockPos offset, ChunkMeshBuilder buffers, CallbackInfoReturnable<Boolean> cir) {
WaterfallCloudGenerators.addGenerator(fluidState, pos.toImmutable());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment