Skip to content

Commit

Permalink
Fixes an NPE thrown with NEI
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchej123 committed Feb 20, 2024
1 parent 33f240c commit 772987a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ protected IIcon getIcon(ICarvingVariation variation, Object cachedObject, int si
@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;
Expand Down

0 comments on commit 772987a

Please sign in to comment.