mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-01-04 15:41:30 +00:00
Fix /0 error (It's a poor fix but it works)
This commit is contained in:
@@ -125,7 +125,7 @@ public class IrisJigsawStructure extends IrisRegistrant
|
|||||||
avg += getLoader().getJigsawPieceLoader().load(i).getMax2dDimension();
|
avg += getLoader().getJigsawPieceLoader().load(i).getMax2dDimension();
|
||||||
}
|
}
|
||||||
|
|
||||||
return (avg/pieces.size()) * (((getMaxDepth() + 1) * 2) + 1);
|
return (avg/(pieces.size() > 0 ? 1 : pieces.size())) * (((getMaxDepth() + 1) * 2) + 1);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user