TheCBProject / CBMultipart

An API for dynamically handling different functional parts in the one block space.
Other
22 stars 28 forks source link

1.12.2 java.lang.NullPointerException when trying to enter creative tab for Microblocks CBE #144

Open InuYasha86000 opened 1 year ago

InuYasha86000 commented 1 year ago

I just tried adding Forge Multipart CBE, Forge Microblocks into my modpack as the mod Project:red requires it, but I am getting this crash whenever I try to enter the crafting tab for Multipart CBE:

Time: 2023-04-02 14:40:46 PDT Description: CCL Has caught an exception whilst rendering an item. Item Class: class codechicken.microblock.ItemMicroPart Registry Name: microblockcbe:microblock Metadata: 1 NBT: {mat:"minecraft:bookshelf"} Model Class: class net.minecraftforge.client.model.PerspectiveMapWrapper Model Location: microblockcbe:microblock#inventory You can turn off player messages in the CCL config file. If you want CCL to attempt to recover the game next time, enable it in the CCL config.

java.lang.NullPointerException at net.smileycorp.cosmeticwood.client.CWBlockColour.colorMultiplier(CWBlockColour.java:20) at net.minecraft.client.renderer.color.BlockColors.colorMultiplier(BlockColors.java:185) at codechicken.microblock.BlockMicroMaterial.getColour(BlockMicroMaterial.scala:112) at codechicken.microblock.BlockMicroMaterial.getMicroRenderOps(BlockMicroMaterial.scala:106) at codechicken.microblock.MicroblockRender$$anonfun$renderCuboid$2.apply$mcVI$sp(MicroblockRender.scala:66) at codechicken.microblock.MicroblockRender$$anonfun$renderCuboid$2.apply(MicroblockRender.scala:64) at codechicken.microblock.MicroblockRender$$anonfun$renderCuboid$2.apply(MicroblockRender.scala:64) at scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:778) at scala.collection.immutable.Range.foreach(Range.scala:160) at scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:777) at codechicken.microblock.MicroblockRender$.renderCuboid(MicroblockRender.scala:64) at codechicken.microblock.FaceMicroblockClient$class.render(FaceMicroblock.scala:51) at Microblock_cmp$$0.render(Unknown Source) at codechicken.microblock.ItemMicroPartRenderer$.renderItem(ItemMicroPart.scala:183) at codechicken.lib.render.item.CCRenderItem.renderItem(CCRenderItem.java:207) at codechicken.lib.render.item.CCRenderItem.renderItemModelIntoGUI(CCRenderItem.java:270) at codechicken.lib.render.item.CCRenderItem.renderItemAndEffectIntoGUI(CCRenderItem.java:337) at net.minecraft.client.gui.inventory.GuiContainer.drawSlot(GuiContainer.java:265) at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:98) at net.minecraft.client.renderer.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:51) at net.minecraft.client.gui.inventory.GuiContainerCreative.drawScreen(GuiContainerCreative.java:643) at net.minecraftforge.client.ForgeHooksClient.drawScreen(ForgeHooksClient.java:396) at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at net.optifine.reflect.Reflector.callVoid(Reflector.java:669) at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1462) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1119) at net.minecraft.client.Minecraft.run(Minecraft.java:3942) at net.minecraft.client.main.Main.main(SourceFile:123) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

The crash seems to be related to Cosmetic Wood for some reason, yet I checked the JEI screen and it was fine (however I only have it showing the stone), and I checked to see if I could multipart a crafting table or book shelf to see if I could get it to crash that way, but I presume you cannot multipart those from the start as they wouldn't. so i'm kind of at a loss on this as there's no configs for either mod that do anything about omitting blocks to see if that works. I DID post this error on Cosmetic Wood as well in case it's something on there end.