Skip to content

Commit

Permalink
Mixin fixes pt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Moondarker committed Feb 29, 2024
1 parent e9332bc commit 56d7bc8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

package meteordevelopment.meteorclient.mixin.sodium;

import me.jellysquid.mods.sodium.client.render.chunk.compile.ChunkBuildBuffers;
import me.jellysquid.mods.sodium.client.render.chunk.compile.buffers.ChunkModelBuilder;
import me.jellysquid.mods.sodium.client.render.chunk.compile.pipeline.BlockRenderContext;
import me.jellysquid.mods.sodium.client.render.chunk.compile.pipeline.BlockRenderer;
import meteordevelopment.meteorclient.systems.modules.render.Xray;
Expand All @@ -17,7 +17,7 @@
@Mixin(value = BlockRenderer.class, remap = false)
public class SodiumBlockRendererMixin {
@Inject(method = "renderModel", at = @At("HEAD"), cancellable = true)
private void onRenderModel(BlockRenderContext ctx, ChunkBuildBuffers buffers, CallbackInfo info) {
private void onRenderModel(BlockRenderContext ctx, ChunkModelBuilder buffers, CallbackInfo info) {
int alpha = Xray.getAlpha(ctx.state(), ctx.pos());

if (alpha == 0) info.cancel();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@
import me.jellysquid.mods.sodium.client.model.quad.blender.ColorSampler;
import me.jellysquid.mods.sodium.client.model.light.LightPipeline;
import me.jellysquid.mods.sodium.client.model.quad.ModelQuadView;
import me.jellysquid.mods.sodium.client.render.chunk.compile.ChunkBuildBuffers;
import me.jellysquid.mods.sodium.client.render.chunk.compile.buffers.ChunkModelBuilder;
import me.jellysquid.mods.sodium.client.render.chunk.compile.pipeline.FluidRenderer;
import me.jellysquid.mods.sodium.client.world.WorldSlice;
import meteordevelopment.meteorclient.systems.modules.Modules;
import meteordevelopment.meteorclient.systems.modules.render.Xray;
import meteordevelopment.meteorclient.systems.modules.world.Ambience;
Expand Down Expand Up @@ -44,7 +43,7 @@ private void onInit(CallbackInfo info) {
}

@Inject(method = "render", at = @At("HEAD"), cancellable = true)
private void onRender(WorldSlice world, FluidState fluidState, BlockPos blockPos, BlockPos offset, ChunkBuildBuffers buffers, CallbackInfo info) {
private void onRender(BlockRenderView world, FluidState fluidState, BlockPos blockPos, BlockPos offset, ChunkModelBuilder buffers, CallbackInfo info) {
int alpha = Xray.getAlpha(fluidState.getBlockState(), blockPos);

if (alpha == 0) info.cancel();
Expand Down

0 comments on commit 56d7bc8

Please sign in to comment.