From 6a02d7727ff9044be22687937a9b3ae7466e75d2 Mon Sep 17 00:00:00 2001 From: LordMZTE Date: Sun, 4 Apr 2021 18:03:44 +0200 Subject: [PATCH] fix xray leaves --- .../modding/dartcraft/block/BlockForceLeaves.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/java/ley/modding/dartcraft/block/BlockForceLeaves.java b/src/main/java/ley/modding/dartcraft/block/BlockForceLeaves.java index 8370e35..e270b9e 100644 --- a/src/main/java/ley/modding/dartcraft/block/BlockForceLeaves.java +++ b/src/main/java/ley/modding/dartcraft/block/BlockForceLeaves.java @@ -22,6 +22,18 @@ public class BlockForceLeaves extends BlockLeaves { this.icon = register.registerIcon(Dartcraft.MODID + ":leaves"); } + @SideOnly(Side.CLIENT) + @Override + public boolean isOpaqueCube() { + return false; + } + + @SideOnly(Side.CLIENT) + @Override + public boolean shouldSideBeRendered(IBlockAccess p_149646_1_, int p_149646_2_, int p_149646_3_, int p_149646_4_, int p_149646_5_) { + return true; + } + @SideOnly(Side.CLIENT) @Override public IIcon getIcon(int p_149691_1_, int p_149691_2_) {