attempt to improve mipping
This commit is contained in:
@@ -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,8 +299,13 @@ public class Mapper {
|
||||
public StateEntry(int id, BlockState state) {
|
||||
this.id = id;
|
||||
this.state = state;
|
||||
//Override opacity of leaves to be solid
|
||||
if (state.getBlock() instanceof LeavesBlock) {
|
||||
this.opacity = 15;
|
||||
} else {
|
||||
this.opacity = state.getOpacity();
|
||||
}
|
||||
}
|
||||
|
||||
public byte[] serialize() {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user