Added IWaterLoggable blocks to block to use in the generation

This commit is contained in:
Leonardo
2021-10-20 21:23:53 +02:00
parent 9faed3a2c8
commit 032b63208c
@@ -43,17 +43,7 @@ import com.seibel.lod.util.LodUtil;
import com.seibel.lod.util.ThreadMapUtil;
import com.seibel.lod.wrappers.MinecraftWrapper;
import net.minecraft.block.AbstractPlantBlock;
import net.minecraft.block.AbstractTopPlantBlock;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.block.Blocks;
import net.minecraft.block.BushBlock;
import net.minecraft.block.FlowerBlock;
import net.minecraft.block.GrassBlock;
import net.minecraft.block.IGrowable;
import net.minecraft.block.LeavesBlock;
import net.minecraft.block.TallGrassBlock;
import net.minecraft.block.*;
import net.minecraft.block.material.MaterialColor;
import net.minecraft.client.renderer.model.BakedQuad;
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
@@ -847,7 +837,7 @@ public class LodBuilder
{
if (!smallBlock.containsKey(blockState.getBlock()) || smallBlock.get(blockState.getBlock()) == null)
{
if(!blockState.getFluidState().isEmpty())
if(!blockState.getFluidState().isEmpty() || blockState.getBlock() instanceof IWaterLoggable)
smallBlock.put(blockState.getBlock(), false);
VoxelShape voxelShape = blockState.getCollisionShape(chunk, blockPos);