recipe.product.type doesn't return string but number
Posted: Sat May 21, 2016 11:08 pm
When calling
it return 0 or 1 (the numbers) instead of "item" or "fluid" (the strings) as the api indicates.
Code: Select all
game.forces.player.recipes['any recipe'].product.type