Carpenter's Blocks

Carpenter's Blocks

24M Downloads

NullPointerException: Unexpected error

TomberWolf opened this issue ยท 1 comments

commented

I placed the simple Carpenter's Block and used the hammer.
MC 1.10.2

Description: Unexpected error

java.lang.NullPointerException: Unexpected error
	at com.carpentersblocks.renderer.AbstractBakedModel.getQuads(AbstractBakedModel.java:172)
	at com.carpentersblocks.renderer.AbstractBakedModel.func_188616_a(AbstractBakedModel.java:117)
	at net.minecraft.client.renderer.block.model.SimpleBakedModel$Builder.func_188645_a(SourceFile:119)
	at net.minecraft.client.renderer.block.model.SimpleBakedModel$Builder.<init>(SourceFile:102)
	at net.minecraftforge.client.ForgeHooksClient.getDamageModel(ForgeHooksClient.java:668)
	at net.minecraft.client.renderer.BlockRendererDispatcher.func_175020_a(BlockRendererDispatcher.java:47)
	at codechicken.lib.render.block.CCExtendedBlockRendererDispatcher.func_175020_a(CCExtendedBlockRendererDispatcher.java:72)
	at net.minecraft.client.renderer.RenderGlobal.func_174981_a(RenderGlobal.java:2721)
	at net.minecraft.client.renderer.EntityRenderer.func_175068_a(EntityRenderer.java:1785)
	at net.minecraft.client.renderer.EntityRenderer.func_78471_a(EntityRenderer.java:1566)
	at net.minecraft.client.renderer.EntityRenderer.func_181560_a(EntityRenderer.java:1345)
	at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1076)
	at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:371)
	at net.minecraft.client.main.Main.main(SourceFile:124)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
	at net.minecraft.launchwrapper.Launch.main(Launch.java:28)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Client thread
Stacktrace:
	at com.carpentersblocks.renderer.AbstractBakedModel.getQuads(AbstractBakedModel.java:172)
	at com.carpentersblocks.renderer.AbstractBakedModel.func_188616_a(AbstractBakedModel.java:117)
	at net.minecraft.client.renderer.block.model.SimpleBakedModel$Builder.func_188645_a(SourceFile:119)
	at net.minecraft.client.renderer.block.model.SimpleBakedModel$Builder.<init>(SourceFile:102)
	at net.minecraftforge.client.ForgeHooksClient.getDamageModel(ForgeHooksClient.java:668)
	at net.minecraft.client.renderer.BlockRendererDispatcher.func_175020_a(BlockRendererDispatcher.java:47)
	at codechicken.lib.render.block.CCExtendedBlockRendererDispatcher.func_175020_a(CCExtendedBlockRendererDispatcher.java:72)
	at net.minecraft.client.renderer.RenderGlobal.func_174981_a(RenderGlobal.java:2721)
	at net.minecraft.client.renderer.EntityRenderer.func_175068_a(EntityRenderer.java:1785)
	at net.minecraft.client.renderer.EntityRenderer.func_78471_a(EntityRenderer.java:1566)
commented

Seems due to render layer not being set before CodeChickenLib is doing whatever it is doing. I can check for absence of render layer but its not really known what will or should happen in this case.