
Subject: NullPointerException Crash with Basic Desk Cabinet Rendering (Minecraft 1.20.1)
HSWJR opened this issue · 3 comments
Bug Description
I encountered a crash while using your mod (PFM 1.4 for Minecraft 1.20.1) alongside other mods like Embeddium and Oculus. The game crashes with a NullPointerException when trying to render the Basic Desk Cabinet, specifically during chunk building.
Caused by: java.lang.NullPointerException: Cannot invoke "java.util.List.contains(Object)" because the return value of "java.util.Map.get(Object)" is null
at com.unlikepaladin.pfm.blocks.models.forge.PFMForgeBakedModel.getQuadsWithTexture(PFMForgeBakedModel.java:84)
at com.unlikepaladin.pfm.blocks.models.basicDeskCabinet.forge.ForgeBasicDeskCabinetModel.getQuads(ForgeBasicDeskCabinetModel.java:162)
Reproduction Steps
Load a world with PFM installed.
Place or encounter a Basic Desk Cabinet in the world.
The game crashes when the block tries to render.
Additional Context:
Mod Version: PFM 1.4 (Forge, MC 1.20.1)
Other Relevant Mods: Embeddium (Sodium fork), Oculus (shaders), but the issue seems to originate from PFM's model rendering.
Workaround: Removing PFM prevents the crash, but I’d love to keep using it!
Possible Causes:
Missing or misconfigured texture/model references in the block's JSON.
A conflict with rendering optimizations (Embeddium/Oculus).