java.lang.ClassCastException: net.minecraft.block.BlockAir cannot be cast to mekanism.client.render.ctm.ICTMBlock

GitHub | Utildayael | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Crash to Desktop - Tesselating Block

    GitHub | 6 months ago | Utildayael
    java.lang.ClassCastException: net.minecraft.block.BlockAir cannot be cast to mekanism.client.render.ctm.ICTMBlock

    Root Cause Analysis

    1. java.lang.ClassCastException

      net.minecraft.block.BlockAir cannot be cast to mekanism.client.render.ctm.ICTMBlock

      at mekanism.client.render.ctm.CTM.canConnect()
    2. mekanism.client.render
      CTMBlockRenderContext.<init>
      1. mekanism.client.render.ctm.CTM.canConnect(CTM.java:320)
      2. mekanism.client.render.ctm.CTM.isConnected(CTM.java:301)
      3. mekanism.client.render.ctm.Dir.isConnected(Dir.java:81)
      4. mekanism.client.render.ctm.CTM.buildConnectionMap(CTM.java:191)
      5. mekanism.client.render.ctm.CTM.createSubmapIndices(CTM.java:154)
      6. mekanism.client.render.ctm.CTMBlockRenderContext.<init>(CTMBlockRenderContext.java:26)
      6 frames
    3. mekanism.common.block
      BlockBasic.getExtendedState
      1. mekanism.common.block.BlockBasic.getExtendedState(BlockBasic.java:217)
      1 frame
    4. MC Client
      BlockRendererDispatcher.func_175018_a
      1. net.minecraft.client.renderer.BlockRendererDispatcher.func_175018_a(BlockRendererDispatcher.java:80)
      1 frame
    5. mods.betterfoliage.client
      Hooks.renderWorldBlock
      1. mods.betterfoliage.client.Hooks.renderWorldBlock(Hooks.kt:97)
      1 frame
    6. net.minecraft.client
      ChunkRenderWorker.run
      1. net.minecraft.client.renderer.chunk.RenderChunk.func_178581_b(RenderChunk.java:199)
      2. net.minecraft.client.renderer.chunk.ChunkRenderWorker.func_178474_a(SourceFile:100)
      3. net.minecraft.client.renderer.chunk.ChunkRenderWorker.run(SourceFile:43)
      3 frames
    7. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame