Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by Utildayael
, 1 year ago
net.minecraft.block.BlockAir cannot be cast to mekanism.client.render.ctm.ICTMBlock
java.lang.ClassCastException: net.minecraft.block.BlockAir cannot be cast to mekanism.client.render.ctm.ICTMBlock	at mekanism.client.render.ctm.CTM.canConnect(CTM.java:320)	at mekanism.client.render.ctm.CTM.isConnected(CTM.java:301)	at mekanism.client.render.ctm.Dir.isConnected(Dir.java:81)	at mekanism.client.render.ctm.CTM.buildConnectionMap(CTM.java:191)	at mekanism.client.render.ctm.CTM.createSubmapIndices(CTM.java:154)	at mekanism.client.render.ctm.CTMBlockRenderContext.(CTMBlockRenderContext.java:26)	at mekanism.common.block.BlockBasic.getExtendedState(BlockBasic.java:217)	at net.minecraft.client.renderer.BlockRendererDispatcher.func_175018_a(BlockRendererDispatcher.java:80)	at mods.betterfoliage.client.Hooks.renderWorldBlock(Hooks.kt:97)	at net.minecraft.client.renderer.chunk.RenderChunk.func_178581_b(RenderChunk.java:199)	at net.minecraft.client.renderer.chunk.ChunkRenderWorker.func_178474_a(SourceFile:100)	at net.minecraft.client.renderer.chunk.ChunkRenderWorker.run(SourceFile:43)	at java.lang.Thread.run(Unknown Source)