attempt to improve mipping

This commit is contained in:
mcrcortex
2025-06-21 15:03:28 +10:00
parent 5f8679e5d2
commit 87072a4edc

View File

@@ -7,6 +7,7 @@ import me.cortex.voxy.common.config.section.SectionStorage;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.block.Blocks;
import net.minecraft.block.LeavesBlock;
import net.minecraft.nbt.NbtCompound;
import net.minecraft.nbt.NbtIo;
import net.minecraft.nbt.NbtOps;
@@ -298,7 +299,12 @@ public class Mapper {
public StateEntry(int id, BlockState state) {
this.id = id;
this.state = state;
this.opacity = state.getOpacity();
//Override opacity of leaves to be solid
if (state.getBlock() instanceof LeavesBlock) {
this.opacity = 15;
} else {
this.opacity = state.getOpacity();
}
}
public byte[] serialize() {