Fixes an NPE thrown with NEI

This commit is contained in:
Jason Mitchell authored and Jason Mitchell committed 2024-02-20 09:28:57 -08:00
1 parent 33f240c73a
commit 772987a4f2
1 file changed
+1
@@ -206,6 +206,7 @@ public enum TextureType {
@Override
@SideOnly(Side.CLIENT)
protected RenderBlocks createRenderContext(RenderBlocks rendererOld, IBlockAccess world, Object cachedObject) {
TextureType.initStatics();
RenderBlocksCTM ret = theRenderBlocksCTM.get();
Triple<?, TextureSubmap, TextureSubmap> data = (Triple<?, TextureSubmap, TextureSubmap>) cachedObject;
ret.blockAccess = world;