-Fixed small crash

This commit is contained in:
makeo committed 2016-01-10 18:43:20 +01:00
1 parent 0dac2eeee9
commit 760f8014b0
1 file changed
+3
@@ -93,6 +93,9 @@ public class InfusionVisualDisguiseArmor extends InfusionRecipe {
@Override
@SideOnly(Side.CLIENT)
public ItemStack getRecipeInput() {
if(Minecraft.getMinecraft().thePlayer == null) {
return new ItemStack(Items.cookie);
}
return armorItems[getRecipeInput(new Random(System.currentTimeMillis() / 1000))];
}