Skip to content

Commit

Permalink
Skip processing blocks if null
Browse files Browse the repository at this point in the history
  • Loading branch information
jaquadro committed Sep 11, 2019
1 parent 9c8eca6 commit 9b196e8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ private static void populateGeometryData(ResourceLocation locationIcon, Resource
BlockModel slotInfo = getBlockModel(locationIcon);
BlockModel countInfo = getBlockModel(locationCount);
for (BlockDrawers block : blocks) {
if (block == null)
continue;

for (int i = 0; i < block.getDrawerCount(); i++) {
Vector3f from = slotInfo.getElements().get(i).positionFrom;
Vector3f to = slotInfo.getElements().get(i).positionTo;
Expand Down

0 comments on commit 9b196e8

Please sign in to comment.