diff --git a/src/main/java/cr0s/warpdrive/block/decoration/BlockLamp_bubble.java b/src/main/java/cr0s/warpdrive/block/decoration/BlockLamp_bubble.java index ce539bee..957860bd 100644 --- a/src/main/java/cr0s/warpdrive/block/decoration/BlockLamp_bubble.java +++ b/src/main/java/cr0s/warpdrive/block/decoration/BlockLamp_bubble.java @@ -4,12 +4,16 @@ import cr0s.warpdrive.data.BlockProperties; import cr0s.warpdrive.data.EnumTier; import net.minecraft.block.state.IBlockState; +import net.minecraft.util.BlockRenderLayer; import net.minecraft.util.math.AxisAlignedBB; import net.minecraft.util.math.BlockPos; import net.minecraft.world.IBlockAccess; import javax.annotation.Nonnull; +import net.minecraftforge.fml.relauncher.Side; +import net.minecraftforge.fml.relauncher.SideOnly; + public class BlockLamp_bubble extends BlockAbstractLamp { private static final AxisAlignedBB AABB_DOWN = new AxisAlignedBB(0.00D, 0.30D, 0.00D, 1.00D, 1.00D, 1.00D); @@ -37,4 +41,17 @@ public class BlockLamp_bubble extends BlockAbstractLamp { default : return AABB_UP; } } + + @SuppressWarnings("deprecation") + @Override + public boolean isTranslucent(final IBlockState state) { + return true; + } + + @Nonnull + @SideOnly(Side.CLIENT) + @Override + public BlockRenderLayer getBlockLayer() { + return BlockRenderLayer.TRANSLUCENT; + } } \ No newline at end of file diff --git a/src/main/resources/assets/warpdrive/models/item/decoration/lamp_flat.mtl b/src/main/resources/assets/warpdrive/models/item/decoration/lamp_flat.mtl index 1e8c070e..a99d63f6 100644 --- a/src/main/resources/assets/warpdrive/models/item/decoration/lamp_flat.mtl +++ b/src/main/resources/assets/warpdrive/models/item/decoration/lamp_flat.mtl @@ -5,5 +5,5 @@ newmtl txt_lamp_flat Ka 1.000000 1.000000 1.000000 Kd 1.000000 1.000000 1.000000 -d 0.100000 +d 1.000000 map_Kd warpdrive:blocks/decoration/lamp_flat