Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Altirix committed Nov 25, 2021
1 parent c833051 commit 7e456de
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package me.jellysquid.mods.sodium.client.render.pipeline;

import me.jellysquid.mods.sodium.client.SodiumClientMod;
import me.jellysquid.mods.sodium.client.model.light.LightMode;
import me.jellysquid.mods.sodium.client.model.light.LightPipeline;
import me.jellysquid.mods.sodium.client.model.light.LightPipelineProvider;
Expand All @@ -19,8 +20,7 @@
import me.jellysquid.mods.sodium.common.util.DirectionUtil;
import net.fabricmc.fabric.api.client.render.fluid.v1.FluidRenderHandler;
import net.fabricmc.fabric.impl.client.rendering.fluid.FluidRenderHandlerRegistryImpl;
import net.minecraft.block.BlockState;
import net.minecraft.block.SideShapeType;
import net.minecraft.block.*;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.render.model.ModelLoader;
import net.minecraft.client.texture.Sprite;
Expand Down Expand Up @@ -321,7 +321,10 @@ public boolean render(BlockRenderView world, FluidState fluidState, BlockPos pos
BlockPos adjPos = this.scratchPos.set(adjX, adjY, adjZ);
BlockState adjBlock = world.getBlockState(adjPos);

if (!adjBlock.isOpaque() && !adjBlock.isAir()) {
if (!adjBlock.isOpaque() && adjBlock.getRenderType() != BlockRenderType.INVISIBLE) {
if (adjBlock.getBlock() instanceof BarrierBlock || adjBlock.getBlock() instanceof GlassBlock) {
SodiumClientMod.logger().info(adjBlock);
}
// ice, glass, stained glass, tinted glass
sprite = this.waterOverlaySprite;

Expand Down

0 comments on commit 7e456de

Please sign in to comment.