package ovh.glitchlabs.ornamentum.blocks; import net.minecraft.world.level.block.IronBarsBlock; import net.minecraft.world.level.block.state.BlockBehaviour; import net.minecraft.world.level.block.state.BlockState; import net.minecraft.core.Direction; public class GlowGlassPaneBlock extends IronBarsBlock { public GlowGlassPaneBlock(BlockBehaviour.Properties properties) { super(properties); } @Override public boolean skipRendering(BlockState state, BlockState adjacentBlockState, Direction side) { return adjacentBlockState.getBlock() instanceof GlowGlassPaneBlock || super.skipRendering(state, adjacentBlockState, side); } }