Fix a possible division by zero in the NEI plugins. Probably depends on java implementation. #1037

This commit is contained in:
Bernhard Bonigl committed 2014-09-28 17:24:31 +02:00
1 parent 457ad128f9
commit 62c2956012
1 file changed
+1 -1
@@ -45,7 +45,7 @@ public class RecipeHandlerToolMaterials extends RecipeHandlerBase
@Override
public PositionedStack getIngredient ()
{
return this.toolParts.get(cycleticks / 20 % this.toolParts.size());
return this.toolParts.get((cycleticks / 20) % this.toolParts.size());
}
@Override